commit 9d40dc0ecb80b87c2402ec40e6ed3acb58c9ae8c Author: maoyingjie Date: Wed Oct 21 09:06:28 2026 +0800 feat: initialize Vue component library and aligned documentation diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..e31497f --- /dev/null +++ b/.gitignore @@ -0,0 +1,10 @@ +node_modules/ +dist/ +coverage/ +.vitepress/cache/ +.vitepress/dist/ +*.tsbuildinfo +.DS_Store +*.tgz +**/.vitepress/cache/ +**/.vitepress/dist/ diff --git a/.prettierignore b/.prettierignore new file mode 100644 index 0000000..d052457 --- /dev/null +++ b/.prettierignore @@ -0,0 +1,7 @@ +pnpm-lock.yaml +dist +node_modules +.vitepress/cache +.vitepress/dist +**/.vitepress/cache/** +**/.vitepress/dist/** diff --git a/.prettierrc.json b/.prettierrc.json new file mode 100644 index 0000000..f466c19 --- /dev/null +++ b/.prettierrc.json @@ -0,0 +1,3 @@ +{ + "htmlWhitespaceSensitivity": "ignore" +} diff --git a/AGENTS.md b/AGENTS.md new file mode 100644 index 0000000..c52c0c5 --- /dev/null +++ b/AGENTS.md @@ -0,0 +1,281 @@ +# 独立 Vue 组件库实施方案与协作约定 + +## 目标与工作区边界 + +本项目计划独立建设一个 Vue 3 组件库,参考 HeroUI v3 的视觉设计、组件范围和交互体验,采用 Vue 生态的实现方式。 + +- 上游 React 参考仓库位于 `../heroui/`,不属于本项目。 +- 本项目目录为 `heroui-vue`,使用独立 Git 仓库。工作区临时包名为 `@heroui-vue/components` 与 `@heroui-vue/styles`;均 private,正式 npm scope 尚未确认。 +- 不在上游仓库新增 `packages/vue`,不改写或删除上游 React 实现,不依赖相邻参考目录才能构建。 +- 本文件是 Vue 项目的执行约定。下文阶段划分保留为路线图,实际实现与验证状态以 `docs/compatibility.md`、`docs/verification.md` 为准。 +- 项目已搭建最小工作区并开始验证 Button、Card、Input、Switch;详细状态以 docs/compatibility.md 为准。 + +成功目标:外观接近所选 HeroUI 基线,核心行为完整,API 符合 Vue 习惯,支持独立安装、按需使用、主题定制和服务端渲染。 + +## 实现原则 + +1. 复刻设计与用户可感知行为,允许底层技术和组件内部 DOM 不同。 +2. 优先使用无样式的 Vue 交互基础组件,再封装本库的视觉和公共 API。 +3. 不机械翻译 JSX、React Hooks 或 React Aria 类型,不通过运行 React 来包装成 Vue 组件。 +4. 样式与交互分别管理;默认在新项目维护自己的样式包,不运行时绑定上游 `@heroui/styles`。 +5. 可以参考或移植上游 CSS、主题变量、变体映射和 SVG;移植内容记录来源、基线提交和原有许可证声明。 +6. 组件之间复用 Label、Description、FieldError、表单状态与弹层基础设施,避免各自实现一套。 +7. 底层库未提供的能力列出差异并实现或明确延后,不用相似名称代替能力验收。 + +## 技术架构 + +| 层次 | 默认方案 | 约束 | +| -------------- | -------------------------------------------------------- | --------------------------------------------------------------------- | +| 框架 | Vue 3、TypeScript、SFC、Composition API | 起步阶段确定最低 Vue 版本并验证;优先采用支持 `defineModel` 的版本 | +| 交互基础 | Reka UI | 统一主要底座;公共 API 不直接照搬全部底层实现细节 | +| 通用组合式函数 | VueUse,按需引入 | 简单状态用 Vue 原生能力;避免重复实现已有传感器与浏览器能力 | +| 样式 | Tailwind CSS 4、CSS 自定义属性、BEM、tailwind-variants | 主题与变体独立;不动态拼接 Tailwind 类名 | +| 日期数据 | `@internationalized/date` | 沿用日历日期、时间和时区语义,不强制转为 JS Date | +| 构建 | Vite 库模式、vue-tsc、类型声明生成 | 输出 ESM 和声明文件,Vue 外置为 peer dependency;起步验证依赖外置策略 | +| 工作区 | pnpm workspace | 初期不强制引入 Turborepo;确有构建编排需求时再加入 | +| 文档与演示 | VitePress + Vue 演示页面 | 提供可运行示例;初期不同时维护 Storybook 与文档两套演示体系 | +| 测试 | Vitest、Vue Test Utils / Testing Library Vue、Playwright | 单元行为、真实浏览器、SSR 与视觉对比分层验证 | + +依赖版本以新项目实际清单和锁文件为准。本文中的 Alpha 状态来自 2026-10-19 的官方文档核对;选型实施时重新核对稳定发布版本、导出、类型和维护状态,不使用只存在于未发布文档中的能力。 + +## Vue 替代方案与能力差异 + +| HeroUI 能力 | Vue 实现方向 | 重点验证 | +| --------------------------------------------------------------------------------- | ------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------ | +| Button、Link | 原生 button/a + 本库封装 | 禁用、加载、表单提交、键盘激活;React Aria 的 onPress 不能简单等价于 click | +| Card、Surface、Badge、Chip、Alert、Skeleton、Spinner、Typography、Kbd、EmptyState | Vue 展示组件 + 本库样式 | 插槽、尺寸、语义、主题、响应式布局 | +| Avatar / AvatarGroup | Reka Avatar + 本库组合 | 加载失败、fallback、分组尺寸与重叠 | +| Checkbox / Radio / Switch / Toggle 及分组 | Reka 对应基础组件 + 本库组上下文 | 受控与非受控、禁用、indeterminate、表单值、方向键 | +| Accordion / Disclosure / Tabs / Toolbar | Reka Accordion、Collapsible、Tabs、Toolbar | 多项展开、方向、激活模式、焦点移动、指示器动画 | +| Modal / AlertDialog | Reka Dialog、AlertDialog | 初始焦点、焦点恢复、焦点限制、Esc、外部点击、嵌套和滚动锁 | +| Popover / Tooltip / Dropdown / Menu | Reka Popover、Tooltip、DropdownMenu | 定位、碰撞处理、箭头、hover 延迟、菜单键盘导航 | +| Select / ListBox / ComboBox / Autocomplete | Reka Select、Listbox、Combobox;按语义组合 | 单选与多选、清空、对象值、过滤、异步数据、输入法、虚拟化与空状态 | +| NumberField / Slider | Reka NumberField、Slider | 步长、范围、精度、本地化、拖动与键盘;不直接复用 React 类型 | +| InputOTP | Reka PinInput | 字符数组与公共字符串值转换、粘贴、自动填充、删除、光标与手机输入体验 | +| Calendar / RangeCalendar / DateField / DatePicker / DateRangePicker / TimeField | Reka 日期系列 + `@internationalized/date` | 日期系列文档标为 Alpha;验证分段输入、范围、时区、locale、禁用日期和日历切换 | +| ColorArea / ColorField / ColorSlider / ColorSwatch / ColorSwatchPicker | Reka 颜色系列 | 文档标为 Alpha;验证格式转换、透明度、拖动、键盘和颜色类型 | +| ColorPicker | 颜色基础组件 + Popover + 本库共享颜色状态 | 各子组件双向同步;必要时评估 Ark UI Vue ColorPicker,避免重复颜色状态源 | +| Drawer | Reka Drawer | 文档标为 Alpha;验证方向、拖动关闭、停靠点、滚动冲突与嵌套 | +| Toast | Reka Toast + 本库队列与命令式 API | 上限、超时暂停、关闭原因、Promise、键盘与读屏公告;Vue Sonner 为备选 | +| Form / Fieldset / TextField / SearchField / InputGroup / FieldError | 原生表单 + 本库字段上下文与组合组件 | name/value 提交、reset、required、错误关联、异步校验与第三方表单库兼容 | +| Tag / TagGroup | 根据交互语义采用 TagGroup、TagsInput 或本库组合 | TagGroup 文档标为 Alpha;展示标签、可删除标签、选择集合和编辑输入不得混为一种语义 | +| Table | 语义化 table + 本库状态层 | 行选择、排序、键盘与 ARIA;大型数据处理确有需要时再评估 TanStack Vue Table,它不自动提供完整可访问交互 | +| Pagination / Separator / Progress | Reka 对应基础组件;Meter 等使用原生语义与本库封装 | 页码边界、范围值、进度公告、未知进度 | +| Breadcrumbs / Header / Label / Description | 语义 HTML + Vue 封装 | 导航地标、当前页、字段标签和描述关联 | +| ScrollShadow / 响应式与测量 Hooks | VueUse 的滚动、媒体查询、ResizeObserver、CSS 变量等能力 | 容器变化、滚动边界、RTL、SSR 和清理 | +| RouterProvider / I18nProvider / Collection 等 RAC 导出 | 本库 ConfigProvider、可选 Vue Router 适配、Vue 数据与列表模型 | 不承诺复刻 React Aria 的框架专属导出;所有公开差异写入兼容矩阵 | + +注意:Reka Select、Combobox、Listbox 的功能范围与 React Aria 不完全相同。多选、过滤、集合更新等需求先用安装版本验证;可组合替代,不假定一个同名组件覆盖所有模式。 + +Vaul Vue 官方已说明停止维护并推荐 Reka Drawer;新项目不采用 Vaul Vue。Reka 某个 Alpha 组件未达到要求时,先记录失败场景,再评估局部替代或补充实现,不因单个缺口切换整套底座。 + +## 建议目录 + +以下为新独立仓库内部结构,仓库名及包名待定: + +```text +/ +├── AGENTS.md +├── apps/ +│ ├── docs/ # VitePress,含组件演示 +│ └── playground/ # 独立消费场景与浏览器测试页面 +├── packages/ +│ ├── vue/ +│ │ ├── src/components/ # 每组件独立目录,SFC、类型、导出 +│ │ ├── src/composables/ +│ │ ├── src/providers/ +│ │ └── tests/ +│ └── styles/ +│ ├── themes/ +│ ├── components/ # 按组件划分 CSS +│ └── src/ # 变体映射与类型 +├── docs/ +│ ├── compatibility.md # 完整组件、属性、行为与差异清单 +│ ├── upstream.md # 上游版本、提交与移植来源 +│ └── decisions/ # 重要架构决策及验证结果 +├── tests/ # 浏览器、视觉、独立安装与 SSR 场景 +└── pnpm-workspace.yaml +``` + +## 公共 API 约定 + +- 简单组件导出 Button、Input、Card 等命名组件;复杂组件导出 SelectRoot、SelectTrigger、SelectContent 等部件。不以 React 的 `Select.Trigger` 对象模式作为默认 API。 +- 普通值使用 `modelValue` / `update:modelValue`,文档使用 `v-model`;展开状态使用 `v-model:open`;二态组件使用 `v-model:checked`,多选集合采用数组并明确空值语义。 +- 日期采用明确的 DateValue 等类型;颜色公共表示先在验证阶段决定,并提供字符串转换边界。不得泄漏 React 专属类型。 +- 支持受控与非受控状态,定义 defaultValue/defaultOpen 等初始值与受控值的优先级,不在内部直接修改传入值。 +- 使用具名和作用域插槽;展示配置通过 size、variant 等变体属性表达。 +- `$attrs`、ARIA、DOM 事件、class 和 style 有明确归属;多根组件使用显式透传,避免事件遗漏或重复触发。 +- `provide/inject` 使用有类型的 InjectionKey,共享响应式状态;明确子部件缺少 Root 时的处理方式。 +- DOM 引用与 focus 等方法通过 `defineExpose` 按需公开。不要将 ref 当成普通 React prop 转发。 +- ConfigProvider 统一 locale、dir、必要的弹层配置;路由链接通过可选适配接入,基础包不强依赖 Vue Router。 +- 原生必填与表单约束是基础能力;第三方校验库提供集成示例,不作为使用 Input 的强制依赖。 + +## 样式与视觉复刻策略 + +1. 固定上游参考提交,以该版本的组件、示例和主题作为第一轮目标,避免开发中不断追逐上游变化。 +2. 在新仓库保存所需设计变量、主题、变体和组件 CSS,保持独立构建。默认保留 Tailwind 4 工程接入方式;无需 Tailwind 的预编译 CSS 作为后续独立目标评估。 +3. 使用库级 CSS 类名前缀,降低 `.button` 等通用类名冲突;颜色、尺寸、圆角、阴影通过 CSS 变量提供可覆盖接口。 +4. 重新核对每个组件的 DOM、data-slot、data-state、data-disabled、定位变量和动画生命周期。原 RAC 的 data-entering/data-exiting 不会由 Reka 自动等价生成。 +5. 优先让新样式匹配 Vue 底座的真实状态;必须保留的兼容标记通过薄适配层生成。不通过伪造 ARIA 改变交互语义。 +6. 保留浅色、深色、焦点可见、禁用、错误、选中、加载、悬停与按下状态;支持 reduced-motion 和 RTL。 +7. 退出动画需要与卸载生命周期协调,定位原点与箭头方向需要映射;不只比对静态截图。 +8. 视觉对比使用固定字体、视口、主题、数据和上游基线,记录可接受差异;不能用更新截图掩盖回归。 + +## 实施阶段与交付物 + +### 阶段 0:基线、能力清单与脚手架 + +- 确定新仓库位置、包名与最低支持环境,固定上游提交。 +- 从上游公共导出生成完整组件清单,包括进行中的 calendar-year-picker;将每项标为计划、验证中、完成或延后。 +- 建立 compatibility.md:记录每个组件的子部件、变体、属性、事件、键盘行为、底座、差异、测试和阶段。 +- 核验 Reka 的实际发布版本,特别是日期、颜色、Drawer、TagGroup;记录文档与安装版本差异。 +- 建立工作区、最小构建、样式入口、文档和消费示例。确认能够脱离参考仓库完成安装与构建。 + +### 阶段 1:纵向验证,先消除高风险差异 + +验证 Button、Card、Input、Switch、Modal、Select,再重点验证 DatePicker、ColorPicker、Drawer、InputOTP。 + +每类交付一个可运行示例、API 草案、样式对比、关键行为测试和已知差异。依赖的 Label、Popover、字段上下文等只实现所需基础能力。日期、颜色、Drawer 的 Alpha 能力在这一阶段决定采用、局部替代或延后,不等整库完成再发现缺口。 + +进入下一阶段的条件:独立消费可用;基础主题一致;复杂组件的焦点、表单值、值同步和关闭生命周期有验证结果;不存在尚未决策的底座阻断。 + +### 阶段 2:完成基础组件与通用设施 + +完成展示组件、按钮族、头像族、基础输入、Label/Description/FieldError、Checkbox/Radio/Switch 及分组、表单上下文、主题与 ConfigProvider。补齐基本 ARIA、原生表单提交与重置。 + +### 阶段 3:完成组合交互与集合组件 + +按依赖关系完成 Accordion/Disclosure、Tabs/Toolbar、弹层与菜单族、Select/Listbox/Combobox/Autocomplete、NumberField/Slider、Tag 族、Toast、Pagination 和 Table。Table 第一版先达到选定上游基线的公开契约,不无条件增加数据网格功能。 + +### 阶段 4:完善复杂组件与兼容性 + +完成日期、时间、颜色、Drawer、OTP、ScrollShadow 等细节;补齐输入法、触屏、RTL、locale、嵌套弹层、SSR、水合与 Nuxt 消费场景。通过能力清单确认没有遗漏公开组件;延后项在版本文档中明确。 + +### 阶段 5:发布准备 + +完成文档、主题指南、按需使用、表单和路由集成示例、类型检查、打包安装验证和变更记录。发布范围与实际完成的兼容矩阵一致;不因视觉相似就声明完整兼容 HeroUI。 + +## 验证与完成标准 + +组件完成必须同时满足其适用条件: + +- 有明确的公共类型、导出、变体、插槽、事件与文档示例。 +- 行为测试覆盖适用的受控/非受控状态、值变更事件、禁用、清空、表单提交/reset 和键盘操作。 +- 弹层测试覆盖焦点进入、焦点限制、关闭和恢复;嵌套及外部点击顺序在真实浏览器验证。 +- 拖动、测量、滚动、定位、退出动画与指针捕获使用真实浏览器验证,不用 jsdom 的假布局替代。 +- SSR 场景不在模块加载或服务端渲染时访问 window/document;ID 与水合稳定,Teleport 的服务端行为有说明和验证。 +- 视觉比较覆盖浅色/深色、主要变体、移动端和关键状态;焦点环、错误提示、减少动画不遗漏。 +- 自动化无障碍检查配合实际键盘操作;检查通过不等于已经完成所有读屏验证。 +- 用打包产物安装到独立 Vue 应用验证,不只运行工作区源码。确认类型可解析、CSS 不被误裁剪、命名导入可用且运行时没有 React 依赖。 +- CSS 在 package.json 的 sideEffects 中正确声明;公共导出指向发布产物,依赖与 peerDependencies 明确。 +- 记录不支持或行为不同的能力。测试验证用户行为,不复制底层库内部实现。 + +计划提供的根命令:`pnpm dev`、`pnpm build`、`pnpm lint`、`pnpm typecheck`、`pnpm test:unit`、`pnpm test:browser`、`pnpm test:ssr`、`pnpm test:visual`、`pnpm test:package`。这些命令在新项目脚手架落地后才视为可执行,届时按实际脚本更新本节。 + +## 执行与维护约定 + +- 将部分任务交给其他 AI 时,采用 [迁移任务拆分与复核约定](docs/migration-handoff.md),明确任务范围、文件归属、共享文件处理与交接报告。本文档提供计划与模板,不代表已派发任务;实现者自测不等于集成人验收。 +- 后续实施先读取本文件与新项目的局部指导,再定位对应的上游组件和样式。 +- 每批实现同步更新兼容矩阵与实际进度,区分“外观完成”和“行为验收完成”。 +- 遇到替代方案差异时先定位具体缺口,给出局部解决方案与验证结果;不直接删除能力或引入第二套整库。 +- 仅在依赖缺口得到证实后引入额外库,并记录体积、状态模型、焦点/弹层互操作和维护成本。 +- 优先完成可独立验证的小批组件;不一次生成所有组件的空壳并标记完成。 +- 本方案不规定工期。阶段 1 结束后根据实际差异和验证成本制定后续批次。 + +## 官方参考 + +- [Reka UI 概览](https://www.reka-ui.com/docs/overview/introduction) +- [Reka Dialog](https://reka-ui.com/docs/components/dialog)、[Combobox](https://reka-ui.com/docs/components/combobox)、[Listbox](https://reka-ui.com/docs/components/listbox) +- [Reka DatePicker](https://reka-ui.com/docs/components/date-picker)、[TimeField](https://reka-ui.com/docs/components/time-field) +- [Reka ColorArea](https://reka-ui.com/docs/components/color-area)、[Drawer](https://reka-ui.com/docs/components/drawer)、[PinInput](https://reka-ui.com/docs/components/pin-input) +- [Reka Toast](https://reka-ui.com/docs/components/toast)、[Vue Sonner](https://vue-sonner.vercel.app/) +- [VueUse](https://vueuse.org/functions)、[Ark UI ColorPicker](https://ark-ui.com/docs/components/color-picker) +- [Vaul Vue 维护状态](https://github.com/unovue/vaul-vue) + +## 当前脚手架命令与边界 + +已配置:`pnpm dev`、`pnpm dev:docs`、`pnpm build`、`pnpm build:playground`、`pnpm build:docs`、`pnpm typecheck`、`pnpm test`、`pnpm test:unit`、`pnpm test:ssr`、`pnpm format`。浏览器、视觉与独立安装检查尚未建立,不得宣称已通过。组件 CSS 与默认主题现已按基线移植,使用 Tailwind 4 编译为独立 CSS。默认 pnpm dev 启动文档,pnpm dev:playground 启动验证页。暂不引入 VueUse 或完整日期依赖,随对应组件落地再添加。 + +这里“尚未建立”指自动化浏览器、视觉和独立安装检查。已进行的手动浏览器验证见 `docs/verification.md`,不能把手动检查描述为相应自动化命令通过。 + +## 2026-10-20:高一致性复刻要求(优先于早期近似演示方案) + +- 组件、文档的样式、布局、文案、参数 API 和主题必须与固定 HeroUI 基线保持高度一致。禁止用自行设计的品牌配色、简化控件或另写的营销演示代替复刻。 +- 原始 CSS、语义变量、尺寸、间距、圆角、阴影、动效、data-slot 与状态属性优先移植并适配。使用 hv- 命名空间不改变视觉数值。 +- 属性名称、默认值和变体集合尽量保留;仅框架机制要求的事件、插槽、响应式值和组合导出改为 Vue 方式。参数不能无记录地删减。 +- 文档以原中文标题、介绍、示例次序、API 表格和导航层次为基线,使用专门的文档布局,不沿用默认 VitePress 外观。演示代码必须来自被渲染的同一份 SFC。 +- 默认开发入口是文档站;playground 仅用于回归场景。未迁移的示例与能力明确列出,不以占位内容充数。 +- 验收分别记录源样式移植、组件行为、文档布局和真实浏览器对比结果。移植了 CSS 不等于已经通过逐像素对比。 + +## 图标约定 + +- 演示与文档 UI 统一采用 `@tabler/icons-vue` 的官方命名组件,按需导入;不自绘 SVG、不在示例中堆放 path 数据。 +- 使用图标库里已有的品牌、功能与加载图标。图标按钮提供 aria-label,装饰图标标记 aria-hidden。 +- 图标包依赖放在 apps/docs;基础组件通过插槽接收图标,保持图标方案可替换。 + +## 迁移实践与后续执行规则(2026-10-20) + +### 先建立清单,再实现组件和文档 + +- 固定参考版本为 HeroUI 3.2.6、提交 `ce90ea3ab49d58f6c428f71bfd6fe8ae2a87b960`。参考源码在 `../heroui/`;构建不能依赖它。 +- 每个组件先读上游 React 实现、组件 CSS、变体映射、中文文档及全部演示。文档路径为 `apps/docs/content/docs/cn/react/components/` 下的分类目录,演示在 `apps/docs/src/demos/cn//`。 +- 把属性及默认值、部件、变体、状态、事件、示例名称和顺序列成清单。不能只实现基础用法,就把组件或文档标为完成。 +- 示例数量对齐只是第一步;还要核对每例的控件数量、文案、图标、图片、尺寸、布局和可操作行为。Card 水平示例不能拿普通卡片改个排列代替。 +- 本轮清单为 Button 14、Card 7、Input 7、Switch 15,共 43 个基线示例。该数字是当前记录,不是整库完成指标;新增迁移必须重新核对对应基线。 +- 上游文案与实际 CSS 冲突时,记录冲突,以固定提交的真实样式和行为为依据,不默默改成自己的设计。 + +### 视觉依赖完整状态链,不能只复制 CSS + +- 为每种状态核对“公共属性 → Vue 状态 → 真实 DOM/ARIA/data 属性 → CSS 选择器 → 浏览器效果”。Reka 不会自动生成 React Aria 的全部状态标记。 +- Button 曾只输出 `data-pending`,遗漏 `aria-disabled`,导致加载按钮仍是正常亮蓝。当前加载期间使用 `aria-disabled="true"`、阻止重复激活,复用主题的 `--disabled-opacity: 0.5`,呈现淡蓝色;不设置原生 `disabled`,保留键盘焦点。不要把加载改成灰色,也不要以“能旋转”代替视觉验收。 +- ARIA 必须反映真实交互语义;不能为了命中样式随意设置。原生禁用、暂时不可激活、只读及加载分别处理,配套验证键盘与事件拦截。 +- 进入加载或禁用状态时清除悬停、按下状态。`pointer-events: none` 可能使预期的指针清理事件不再到达,不依赖 pointerleave 完成全部清理。 +- 复用主题变量、BEM 类名、data-slot 和现有变体体系;适配写在可定位的组件层或样式入口,不往文档全局塞零散补丁掩盖组件问题。 +- 组合图标与加载指示器要检查最终尺寸及选择器继承。加载演示使用独立 `data-slot="spinner"` 容器,避免被 Button 的普通 SVG 尺寸规则覆盖;保留 reduced-motion 行为。 +- 同时检查浅色、深色、焦点、禁用、选中、错误与动态状态;截图之外检查计算样式,区分颜色变化、整体透明度和主题变量错误。 +- 运行时 CSS 变量不等于 Tailwind 编译期主题映射。文档的 utilities.css 必须在自己的编译入口导入库的 `themes/shared/theme.css`(@theme inline),否则 `from-accent/12`、`bg-accent/15`、`shadow-accent/20` 等类会静默缺失;不能只看模板类名一致。 +- 预览的通用宽度约束放在 components 层,让 utilities 层的 `max-w-md` 等显式定制优先。不要用无层的高优先级 max-width:100% 覆盖所有示例,造成卡片被拉满。 + +### Vue 组合、属性透传与表单边界 + +- 普通组件和组合组件都要测试 `$attrs` 的最终落点。Switch 的字段容器承接 class/style/data-*,实际 Content 按钮承接 ARIA 和 DOM 事件;不能因用户自定义默认插槽,就丢失根组件的 aria-label。 +- `useAttrs()` 不是普通响应式对象。需要随父级更新的属性,不用无响应式依赖的 computed 缓存快照;在渲染时读取,并测试父级动态修改 ARIA 属性。 +- `asChild` 采用 Reka Primitive 合并属性,明确要求唯一有效根元素。它是 Vue 对 React render prop 的适配,不宣称复刻原有事件模型。 +- 受控值由父组件决定,非受控值维护内部初值。父组件拒绝 Input 更新时,检查真实 input.value 是否恢复,不能只检查 update:modelValue 是否发出。 +- 表单必须检查实际 `FormData`、未选中值是否省略、禁用值是否省略、默认提交值、required、reset 与被取消的 reset。受控 reset 不能覆盖父级值;非受控 reset 恢复初始值。 +- 当前 Switch 通过本库原生 checkbox 处理表单,Reka 负责可点击控件的交互;不要再同时给底层 Reka 注入 name,造成重复表单字段。表单字段与可见状态保持同步,清理表单监听器。 +- readonly 不等于 disabled。Switch 的鼠标、Enter、空格均需验证;不能只拦截 click,然后遗漏底层键盘更新路径。 +- Label 在原生 Input 外使用 label/for;Switch 按钮内部采用非交互标签元素。Description/FieldError 使用唯一 ID,合并显式 aria-describedby;多个描述和多个实例不能共享重复 ID。 +- native 校验要实际阻止无效提交,并把焦点引向可见控件;aria 校验负责错误语义,提交由调用者处理。当前 FieldError 仅接入 Switch,不能据此声称完整 TextField/Form 已实现。 +- 定时器、动画、事件监听与描述注册均需卸载清理。SSR 不访问浏览器全局,使用 useId;SSR 渲染通过仍不代表水合与完整字段关联通过。 + +### 演示内容本身就是交付物 + +- `apps/docs/demos/*.vue` 是预览、复制和高亮的同一来源。示例必须能独立读懂,保留必要导入,移除未使用的组件和重复的 SVG 路径。 +- 固定状态示例与交互示例分别说明。加载示例应明确“固定展示”;动态上传应能触发、显示加载、阻止重复操作、恢复并再次触发。 +- 图标沿用上面的 Tabler 约定,不再自绘。图标组件只做装饰时隐藏其读屏语义,只有图标的按钮由按钮提供可访问名称。 +- 尚未迁移的依赖组件可以用原生语义或已安装的无样式组件局部组合。例如 Card 的头像采用 Reka Avatar,表单采用原生 form/label。记录替代边界,不把演示中的适配当成已发布的新组件。 +- 表单示例应展示真实提交值或明确反馈;不假装完成登录、支付等业务。示例使用上游图片 URL 时检查加载与 fallback,网络资源存在并不等于已验证离线使用。 +- 预览区与正文排版样式隔离;正文的段落、标题、表格规则不能覆盖组件。固定宽度示例保留原始目标宽度,同时受窄屏 max-width 约束。 +- Shiki 生成 token 不等于页面已高亮。浅色需应用 `--shiki-light`,深色需应用 `--shiki-dark`,通过浏览器计算颜色验证;不只查看是否存在 span。 +- 高亮在构建/服务端生成,展开时按需加载,复制读取原始 SFC;高亮资源失败时仍提供可读源码。热更新同时失效原始源码与高亮模块,避免显示旧代码。 +- 文档检查包括展开/收起、复制反馈、键盘搜索与章节跳转、移动目录、深浅切换和 API 表格实际渲染。Markdown 表格被空行断开等问题,类型检查不会发现。 + +### 开发预览必须可靠 + +- 文档固定地址为 `http://127.0.0.1:5173`,使用 strictPort。发现占用先确认监听进程的工作目录与用途,不盲目结束其他服务,也不悄悄切换到 5174 后给用户另一个地址。 +- 开发模式通过精确匹配的 alias 读取 `packages/vue/src/index.ts`、`packages/styles/src/index.ts` 与样式源码;排除工作区包预构建并去重 Vue。生产构建仍走包导出的 dist,以免源码 alias 掩盖发布问题。 +- 区分 `@heroui-vue/styles` 与 `@heroui-vue/styles/css`,避免宽泛前缀 alias 误匹配子路径。只重建 dist 无法证明浏览器的依赖缓存已经更新。 +- 开发监听忽略 `.vitepress/dist/**`,避免生产构建触发连续刷新。修改 VitePress 配置或高亮插件后,如出现已释放的 Shiki 实例错误,完整重启本项目服务后再验证。 +- 遇到“浏览器没生效”,先确认地址、监听进程、源码/产物解析路径和实际返回内容,再检查缓存;不能默认让用户强刷,也不能以本地测试通过代替页面验证。 +- 每轮交付确保给出的端口实际可访问,并在浏览器检查刚修复的示例。不要把旧标签、旧截图或另一个实例当作本轮证据。 + +### 验证、来源与交付记录 + +- 按改动运行 `pnpm test`、`pnpm typecheck`、`pnpm build:docs`、`pnpm format`;涉及消费验证页时加 `pnpm build:playground`。当前完整测试为 34 项,此数仅作本轮记录。 +- 回归优先测试用户可感知行为:重复操作、状态恢复、焦点、表单值、标签关联和只读键盘路径。文档清单测试检查预览名称与顺序;它不能证明示例内容和外观正确。 +- 单元测试、SSR 冒烟、手动浏览器检查、自动无障碍和自动视觉对比分别记录。测试通过、CSS 移植或示例齐全均不等于整组件完成兼容验收。 +- 视觉证据注明版本、视口、主题及状态,必要时附计算样式。未来建立自动对比后,不能通过更新截图掩盖回归。 +- 同步维护 `docs/compatibility.md`(能力与差异)、`docs/upstream.md`(来源与许可)、`docs/verification.md`(实际验证与限制)。详细历史留在这些文件,AGENTS.md 维护后续可执行的规则。 +- 上游部分包清单标注 MIT,但本地根许可证实际为 Apache-2.0。保留 `third-party/HEROUI-LICENSE` 与样式包许可证,不根据包清单猜测移植许可;新增第三方图标包按其自身许可记录。 +- 自动浏览器/逐像素对比、完整触屏/读屏、Nuxt 水合与打包后独立安装仍未完成,不在交付说明中暗示已通过。 diff --git a/README.md b/README.md new file mode 100644 index 0000000..e2c0275 --- /dev/null +++ b/README.md @@ -0,0 +1,32 @@ +# HeroUI Vue + +独立的 Vue 3 组件库项目,以 HeroUI v3 为设计参考。社区实验项目,非官方发行版,当前包均未发布。 + +## 本地运行 + +需要 Node.js 22.12+(使用 Node 22 时)和 pnpm 11。更高 Node 主版本需符合 Vite 的支持范围。 + +```sh +pnpm install +pnpm dev +``` + +默认启动组件文档:http://127.0.0.1:5173/components/button。`pnpm dev:playground` 启动独立验证页。 + +文档开发模式直接加载工作区组件与样式源码,支持热更新;生产构建仍使用包产物。文档端口固定为 5173,占用时会报错,请先停止已有文档进程,避免打开不同实例。 + +```sh +pnpm build +pnpm typecheck +pnpm test +pnpm build:playground +pnpm build:docs +``` + +`packages/vue` 为组件包,`packages/styles` 为独立样式包;`apps/playground` 用于交互验证,`apps/docs` 提供 VitePress 文档。构建库不需要旁边的原 React 仓库。 + +Button、Card、Input、Switch 已移植基线主题、主要变体与组合结构,仍处于完整兼容验收阶段。日期、颜色、弹层等尚未实现。详见 [兼容矩阵](docs/compatibility.md)、[实施方案](AGENTS.md) 与 [上游基线](docs/upstream.md)。 + +临时包名为 `@heroui-vue/components`、`@heroui-vue/styles`,均设置 `private: true`;发布前需确认包名、许可证与版本策略。 + +当前文档采用上游中文标题、说明和示例次序,并提供同一 SFC 源码的可运行演示。样式来源与许可见 [上游记录](docs/upstream.md),尚未覆盖的能力见 [兼容矩阵](docs/compatibility.md)。 diff --git a/apps/docs/.vitepress/config.ts b/apps/docs/.vitepress/config.ts new file mode 100644 index 0000000..326a964 --- /dev/null +++ b/apps/docs/.vitepress/config.ts @@ -0,0 +1,66 @@ +import tailwindcss from "@tailwindcss/vite"; +import { defineConfig } from "vitepress"; +import { docsDataPlugin } from "./docs-data"; +import { fileURLToPath } from "node:url"; +export default defineConfig({ + lang: "zh-CN", + title: "HeroUI Vue", + description: "美观、现代的 Vue UI 组件库", + appearance: true, + cleanUrls: true, + head: [["meta", { name: "theme-color", content: "#f5f5f5" }]], + markdown: { headers: { level: [2, 3] } }, + vite: { + plugins: [ + tailwindcss(), + { + name: "workspace-source-dev", + apply: "serve", + config: () => ({ + resolve: { + alias: [ + { + find: /^@heroui-vue\/components$/, + replacement: fileURLToPath( + new URL( + "../../../packages/vue/src/index.ts", + import.meta.url, + ), + ), + }, + { + find: /^@heroui-vue\/styles\/css$/, + replacement: fileURLToPath( + new URL( + "../../../packages/styles/index.css", + import.meta.url, + ), + ), + }, + { + find: /^@heroui-vue\/styles$/, + replacement: fileURLToPath( + new URL( + "../../../packages/styles/src/index.ts", + import.meta.url, + ), + ), + }, + ], + dedupe: ["vue"], + }, + optimizeDeps: { + exclude: ["@heroui-vue/components", "@heroui-vue/styles"], + }, + }), + }, + docsDataPlugin(fileURLToPath(new URL("..", import.meta.url))), + ], + server: { + host: "127.0.0.1", + port: 5173, + strictPort: true, + watch: { ignored: ["**/.vitepress/dist/**"] }, + }, + }, +}); diff --git a/apps/docs/.vitepress/docs-data.ts b/apps/docs/.vitepress/docs-data.ts new file mode 100644 index 0000000..7a6fef1 --- /dev/null +++ b/apps/docs/.vitepress/docs-data.ts @@ -0,0 +1,118 @@ +import { readFile, readdir } from "node:fs/promises"; +import path from "node:path"; +import { createMarkdownRenderer } from "vitepress"; +import type { Plugin } from "vite"; + +// Build both highlights and the local search index from the actual documentation. +export function docsDataPlugin(root: string): Plugin { + const id = "\0virtual:docs-data"; + let renderer: ReturnType; + return { + name: "heroui-docs-data", + resolveId(source) { + if (source === "virtual:docs-data") return id; + if (/^virtual:docs-highlight\/[a-z0-9-]+$/.test(source)) + return "\0" + source; + }, + async load(source) { + if (source !== id && !source.startsWith("\0virtual:docs-highlight/")) + return; + renderer ??= createMarkdownRenderer(root, { + theme: { light: "github-light", dark: "github-dark" }, + headers: { level: [2, 3] }, + }); + const md = await renderer; + if (source.startsWith("\0virtual:docs-highlight/")) { + const name = source.slice("\0virtual:docs-highlight/".length); + const file = path.join(root, "demos", name + ".vue"); + this.addWatchFile(file); + return ( + "export default " + + JSON.stringify( + md.render("```vue\n" + (await readFile(file, "utf8")) + "\n```"), + ) + ); + } + const highlights: string[] = []; + for (const name of await readdir(path.join(root, "demos"))) { + if (!name.endsWith(".vue")) continue; + const file = path.join(root, "demos", name); + this.addWatchFile(file); + const key = name.slice(0, -4); + highlights.push( + JSON.stringify(key) + + ":()=>import(" + + JSON.stringify("virtual:docs-highlight/" + key) + + ")", + ); + } + const pages = [ + "introduction.md", + "guide.md", + "themes.md", + ...(await readdir(path.join(root, "components"))) + .filter((f) => f.endsWith(".md")) + .map((f) => "components/" + f), + ]; + const search = []; + const plain = (value: string) => + value + .replace(/^[| :\-]+$/gm, " ") + .replace(/<[^>]*>/g, " ") + .replace(/[`*#|]/g, " ") + .replace(/\s+/g, " ") + .trim(); + for (const name of pages) { + const file = path.join(root, name); + this.addWatchFile(file); + const raw = await readFile(file, "utf8"); + const title = raw.match(/^title:\s*(.+)$/m)?.[1] ?? name; + const description = raw.match(/^description:\s*(.+)$/m)?.[1] ?? ""; + const url = "/" + name.slice(0, -3); + search.push({ title, section: "概览", url, text: description }); + const content = raw.replace(/^---[\s\S]*?---/, ""); + // The rendered IDs come from the same Markdown renderer as the real pages. + const env: { + headers?: { title: string; slug: string; children?: unknown[] }[]; + } = {}; + const rendered = md.render(content, env); + const headings = [ + ...rendered.matchAll( + /]*>([\s\S]*?)<\/h[23]>/g, + ), + ]; + const chunks = content.split(/^#{2,3}\s+.+$/m).slice(1); + headings.forEach((h, i) => + search.push({ + title, + section: plain(h[3].replace(//g, "")), + url: url + "#" + h[2], + text: plain(chunks[i] ?? "").slice(0, 2000), + }), + ); + } + return ( + "export const highlights=" + + "{" + + highlights.join(",") + + "}" + + ";export const searchIndex=" + + JSON.stringify(search) + + ";" + ); + }, + handleHotUpdate(ctx) { + if (/\.(md|vue)$/.test(ctx.file)) { + const mod = ctx.server.moduleGraph.getModuleById(id); + if (mod) { + ctx.server.moduleGraph.invalidateModule(mod); + for (const [key, highlight] of ctx.server.moduleGraph.idToModuleMap) { + if (key.startsWith("\0virtual:docs-highlight/")) + ctx.server.moduleGraph.invalidateModule(highlight); + } + ctx.server.ws.send({ type: "full-reload" }); + } + } + }, + }; +} diff --git a/apps/docs/.vitepress/env.d.ts b/apps/docs/.vitepress/env.d.ts new file mode 100644 index 0000000..c00dbd7 --- /dev/null +++ b/apps/docs/.vitepress/env.d.ts @@ -0,0 +1,4 @@ +declare module "virtual:docs-data" { + export const highlights: Record Promise<{ default: string }>>; + export const searchIndex: import("./theme/search").SearchEntry[]; +} diff --git a/apps/docs/.vitepress/theme/Demo.vue b/apps/docs/.vitepress/theme/Demo.vue new file mode 100644 index 0000000..0b5829f --- /dev/null +++ b/apps/docs/.vitepress/theme/Demo.vue @@ -0,0 +1,103 @@ + + diff --git a/apps/docs/.vitepress/theme/DocSearch.vue b/apps/docs/.vitepress/theme/DocSearch.vue new file mode 100644 index 0000000..077c0f4 --- /dev/null +++ b/apps/docs/.vitepress/theme/DocSearch.vue @@ -0,0 +1,156 @@ + + diff --git a/apps/docs/.vitepress/theme/Layout.vue b/apps/docs/.vitepress/theme/Layout.vue new file mode 100644 index 0000000..d80a4b0 --- /dev/null +++ b/apps/docs/.vitepress/theme/Layout.vue @@ -0,0 +1,300 @@ + + diff --git a/apps/docs/.vitepress/theme/index.ts b/apps/docs/.vitepress/theme/index.ts new file mode 100644 index 0000000..43e1897 --- /dev/null +++ b/apps/docs/.vitepress/theme/index.ts @@ -0,0 +1,12 @@ +import type { Theme } from "vitepress"; +import Layout from "./Layout.vue"; +import Demo from "./Demo.vue"; +import "@heroui-vue/styles/css"; +import "./utilities.css"; +import "./style.css"; +export default { + Layout, + enhanceApp({ app }) { + app.component("ComponentPreview", Demo); + }, +} satisfies Theme; diff --git a/apps/docs/.vitepress/theme/search.ts b/apps/docs/.vitepress/theme/search.ts new file mode 100644 index 0000000..25cdcfd --- /dev/null +++ b/apps/docs/.vitepress/theme/search.ts @@ -0,0 +1,55 @@ +export interface SearchEntry { + title: string; + section: string; + url: string; + text: string; +} +export function searchDocs( + entries: SearchEntry[], + query: string, +): SearchEntry[] { + const terms = query.toLocaleLowerCase().trim().split(/\s+/).filter(Boolean); + if (!terms.length) return []; + return entries + .map((entry, index) => { + const title = entry.title.toLocaleLowerCase(), + section = entry.section.toLocaleLowerCase(), + text = entry.text.toLocaleLowerCase(); + if ( + !terms.every((term) => + (title + " " + section + " " + text).includes(term), + ) + ) + return null; + const score = terms.reduce( + (score, term) => + score + + (title.includes(term) ? 12 : 0) + + (section.includes(term) ? 8 : 0) + + (text.includes(term) ? 1 : 0), + 0, + ); + return { entry, score, index }; + }) + .filter((item): item is NonNullable => item !== null) + .sort((a, b) => b.score - a.score || a.index - b.index) + .slice(0, 20) + .map((item) => item.entry); +} + +export function searchExcerpt(entry: SearchEntry, query: string): string { + const text = entry.text + .replace(/[-:|]{3,}/g, " ") + .replace(/\s+/g, " ") + .trim(); + const terms = query.trim().toLocaleLowerCase().split(/\s+/).filter(Boolean); + const positions = terms + .map((term) => text.toLocaleLowerCase().indexOf(term)) + .filter((index) => index >= 0); + const start = positions.length ? Math.max(0, Math.min(...positions) - 28) : 0; + return ( + (start ? "…" : "") + + text.slice(start, start + 140) + + (text.length > start + 140 ? "…" : "") + ); +} diff --git a/apps/docs/.vitepress/theme/style.css b/apps/docs/.vitepress/theme/style.css new file mode 100644 index 0000000..39aded7 --- /dev/null +++ b/apps/docs/.vitepress/theme/style.css @@ -0,0 +1,1114 @@ +@font-face { + font-family: Inter; + src: url("/fonts/Inter-Regular.ttf") format("truetype"); + font-weight: 400; + font-display: swap; +} +@font-face { + font-family: Inter; + src: url("/fonts/Inter-Medium.ttf") format("truetype"); + font-weight: 500 600; + font-display: swap; +} +@font-face { + font-family: Inter; + src: url("/fonts/Inter-Bold.ttf") format("truetype"); + font-weight: 700 900; + font-display: swap; +} +:root { + font-family: Inter, ui-sans-serif, system-ui, "PingFang SC", sans-serif; + font-synthesis: none; + --docs-border: oklch(0 0 0 / 10%); + font-size: 16px; +} +.dark { + --docs-border: oklch(1 0 0 / 10%); +} +* { + box-sizing: border-box; +} +html { + scroll-behavior: smooth; + scroll-padding-top: 88px; +} +body { + margin: 0; + background: var(--background); + color: var(--foreground); + -webkit-font-smoothing: antialiased; +} +button, +input { + font: inherit; +} +a { + color: inherit; + text-decoration: none; +} +button { + cursor: pointer; +} +.docs-layout { + max-width: 1400px; + margin: auto; +} +.docs-nav { + height: 72px; + display: flex; + align-items: center; + gap: 18px; + padding: 0 28px; + position: sticky; + top: 0; + z-index: 20; + background: var(--background); + border-bottom: 1px solid var(--docs-border); +} +.brand { + font-size: 25px; + font-weight: 800; + letter-spacing: -1.4px; + display: flex; + align-items: center; + gap: 10px; +} +.brand span { + font-size: 12px; + letter-spacing: 0; + font-weight: 500; + background: var(--default); + padding: 3px 7px; + border-radius: 6px; +} +.version { + font-size: 12px; + color: var(--muted); +} +.docs-nav nav { + display: flex; + gap: 24px; + margin-left: 28px; + font-size: 14px; + color: var(--muted); +} +.docs-nav nav a.active { + color: var(--foreground); +} +.nav-tools { + display: flex; + align-items: center; + gap: 14px; + margin-left: auto; +} +.theme-toggle { + border: 0; + border-radius: 50%; + width: 32px; + height: 32px; + background: var(--default); + font-size: 20px; +} +.mobile-menu { + display: none; +} +.docs-body { + display: grid; + grid-template-columns: 248px minmax(0, 1fr) 200px; +} +.docs-sidebar { + padding: 24px 18px; + position: sticky; + top: 72px; + height: calc(100dvh - 72px); + overflow: auto; + border-right: 1px solid var(--docs-border); +} +.framework { + display: flex; + align-items: center; + gap: 10px; + border: 1px solid var(--docs-border); + border-radius: 12px; + padding: 12px; + font-size: 14px; + font-weight: 500; + margin-bottom: 28px; +} +.vue-mark { + font-weight: 700; + color: #42b883; +} +.framework-note { + margin-left: auto; + font-size: 12px; + color: var(--muted); +} +.docs-sidebar section { + margin-bottom: 26px; +} +.docs-sidebar h2 { + font-size: 13px; + font-weight: 600; + margin: 0 0 10px; + padding-left: 10px; +} +.docs-sidebar section a { + display: block; + font-size: 14px; + padding: 8px 12px; + color: var(--muted); + border-radius: 8px; +} +.docs-sidebar section a.selected { + background: var(--default); + color: var(--foreground); + font-weight: 500; +} +.docs-sidebar section a:hover { + color: var(--foreground); +} +.community { + font-size: 11px; + line-height: 1.8; + color: var(--muted); + padding: 14px 10px; +} +.docs-main { + min-width: 0; + padding: 36px 40px 80px; + max-width: 900px; + width: 100%; + margin: auto; +} +.breadcrumb { + display: flex; + align-items: center; + gap: 10px; + font-size: 13px; + color: var(--muted); + margin-bottom: 22px; +} +.breadcrumb span { + opacity: 0.5; +} +h1 { + font-size: 32px; + font-weight: 600; + line-height: 1.25; + letter-spacing: -1px; + margin: 0 0 12px; +} +.page-description { + font-size: 16px; + color: var(--muted); + line-height: 1.75; + margin: 0; +} +.source-links { + display: flex; + gap: 8px; + margin: 18px 0 34px; +} +.source-links a { + font-size: 12px; + line-height: 1.5; + border: 1px solid var(--docs-border); + padding: 5px 9px; + border-radius: 7px; + color: var(--muted); +} +.source-links a:hover { + color: var(--foreground); + background: var(--default); +} +.docs-content { + font-size: 14px; + line-height: 1.85; +} +.docs-content h2:not(:where(.not-prose, .not-prose *)) { + font-size: 23px; + font-weight: 600; + letter-spacing: -0.5px; + line-height: 1.4; + margin: 42px 0 20px; +} +.docs-content h3:not(:where(.not-prose, .not-prose *)) { + font-size: 18px; + font-weight: 500; + line-height: 1.5; + margin: 32px 0 16px; +} +.docs-content p:not(:where(.not-prose, .not-prose *)) { + margin: 16px 0; +} +.docs-content ul:not(:where(.not-prose, .not-prose *)) { + list-style: disc; + padding-left: 22px; +} +.docs-content li:not(:where(.not-prose, .not-prose *)) { + margin: 6px 0; +} +.docs-content + a:not(.header-anchor):not(.demo-link):not(:where(.not-prose, .not-prose *)) { + text-decoration: underline; + text-underline-offset: 4px; +} +.header-anchor { + float: left; + margin-left: -20px; + opacity: 0; + font-size: 16px; +} +.docs-content h2:hover .header-anchor, +.docs-content h3:hover .header-anchor { + opacity: 1; +} +.docs-content :not(pre) > code { + background: var(--default); + border-radius: 5px; + padding: 2px 5px; + font-size: 12px; +} +.docs-content div[class*="language-"] { + position: relative; + border: 1px solid var(--docs-border); + border-radius: 10px; + background: var(--surface); + margin: 16px 0; +} +.docs-content div[class*="language-"] > .lang { + position: absolute; + right: 12px; + top: 6px; + font-size: 11px; + color: var(--muted); +} +.docs-content div[class*="language-"] > .copy { + display: none; +} +.docs-content pre { + overflow: auto; + padding: 22px; + margin: 0; + font-family: ui-monospace, SFMono-Regular, monospace; + font-size: 12px; + line-height: 1.8; +} +.docs-content pre code { + white-space: pre; +} +.shiki, +.shiki span { + color: var(--shiki-light); +} +.dark .shiki, +.dark .shiki span { + color: var(--shiki-dark) !important; + background-color: transparent !important; +} +.docs-content table:not(:where(.not-prose, .not-prose *)) { + display: block; + overflow: auto; + width: 100%; + border-collapse: collapse; + font-size: 12px; + margin: 18px 0 30px; +} +.docs-content th:not(:where(.not-prose, .not-prose *)) { + text-align: left; + font-weight: 500; + color: var(--muted); + white-space: nowrap; +} +.docs-content th, +.docs-content td:not(:where(.not-prose, .not-prose *)) { + padding: 13px 12px; + border-bottom: 1px solid var(--docs-border); + vertical-align: top; + min-width: 88px; +} +.docs-content th:first-child, +.docs-content td:first-child { + padding-left: 0; +} +.docs-content td code { + white-space: nowrap; +} +.docs-content .custom-block { + border: 1px solid var(--docs-border); + background: var(--default-soft); + padding: 12px 16px; + border-radius: 12px; + margin: 20px 0; +} +.custom-block-title { + font-weight: 500; +} +.docs-toc { + position: sticky; + top: 72px; + height: calc(100dvh - 72px); + overflow: auto; + padding: 42px 20px; + font-size: 12px; +} +.docs-toc p { + font-weight: 500; + margin: 0 0 14px; +} +.docs-toc a { + display: block; + color: var(--muted); + padding: 6px 0; + line-height: 1.5; +} +.docs-toc a.nested { + padding-left: 12px; +} +.docs-toc a:hover { + color: var(--foreground); +} +.docs-footer { + font-size: 12px; + color: var(--muted); + border-top: 1px solid var(--docs-border); + padding-top: 24px; + margin-top: 60px; +} +.component-preview-container { + margin: 16px 0 24px; + contain: content; +} +.preview { + display: flex; + align-items: center; + justify-content: center; + min-height: 350px; + padding: 40px; + border: 1px solid var(--separator); + border-bottom: 0; + border-radius: 12px 12px 0 0; +} +.demo-row { + display: flex; + flex-wrap: wrap; + align-items: center; + justify-content: center; + gap: 12px; + width: 100%; +} +.code-section { + border: 1px solid var(--separator); + border-radius: 0 0 12px 12px; + overflow: hidden; +} +.code-toolbar { + display: flex; + justify-content: space-between; + align-items: center; + padding: 10px 16px; + font-size: 12px; + color: var(--muted); +} +.code-toolbar > div { + display: flex; + gap: 16px; +} +.code-toolbar button { + font-size: 12px; + background: none; + border: 0; + color: inherit; + padding: 3px 0; +} +.demo-source { + background: var(--surface); + border-top: 1px solid var(--separator); + max-height: 380px; +} +.docs-content .demo-source code { + white-space: pre; +} +.basic-input { + width: 16rem; +} +.input-stack { + display: flex; + flex-direction: column; + gap: 8px; + width: 240px; +} +.controlled-input { + display: flex; + flex-direction: column; + gap: 8px; + width: 320px; +} +.controlled-input > span { + font-size: 14px; + color: var(--muted); + padding: 0 4px; +} +.surface-demo { + padding: 24px; + background: var(--surface); + border-radius: 24px; + width: 320px; +} +.acme-card { + width: 400px; +} +.card-symbol { + font-size: 24px; + font-weight: 500; + line-height: 1; +} +.docs-content .demo-link { + font-size: 14px; + color: var(--link); + text-decoration: none; + text-underline-offset: 4px; +} +.docs-content .demo-link:hover { + text-decoration: underline; +} +.variant-card { + width: 180px; +} +.horizontal-card { + display: grid; + grid-template-columns: 32px 1fr; +} +.horizontal-card .hv-card__footer { + grid-column: 2; +} +.skip { + position: fixed; + top: -50px; + left: 16px; + z-index: 50; + padding: 8px 12px; + background: var(--surface); +} +.skip:focus { + top: 8px; +} +button:focus-visible, +a:focus-visible { + outline: 2px solid var(--focus); + outline-offset: 3px; +} + +@media (max-width: 1150px) { + .docs-body { + grid-template-columns: 230px minmax(0, 1fr); + } + .docs-toc { + display: none; + } + .docs-main { + padding: 32px; + } +} +@media (max-width: 760px) { + .docs-nav { + height: 64px; + padding: 0 18px; + gap: 10px; + } + .docs-nav nav, + .version, + .search { + display: none; + } + .mobile-menu { + display: block; + border: 0; + background: none; + color: var(--foreground); + } + .docs-body { + display: block; + } + .docs-sidebar { + display: none; + } + .docs-sidebar.open { + display: block; + position: fixed; + inset: 64px 0 0 0; + background: var(--background); + z-index: 15; + height: auto; + } + .docs-main { + padding: 28px 20px 60px; + } + .preview { + padding: 20px; + min-height: 300px; + } + h1 { + font-size: 28px; + } + .variant-card { + width: 100%; + } + .docs-content table:not(:where(.not-prose, .not-prose *)) { + font-size: 12px; + } +} +@media (prefers-reduced-motion: reduce) { + html { + scroll-behavior: auto; + } +} + +/* Reading layout and controls: keep the reference structure without crowding the content. */ +.docs-body { + grid-template-columns: 240px minmax(0, 1fr) 192px; + align-items: start; +} +.docs-main { + padding: 36px 44px 64px; + max-width: 824px; + margin: 0 auto; +} +.docs-toc { + padding: 40px 16px 32px; + border-left: 1px solid var(--docs-border); + margin-top: 32px; + top: 104px; + height: calc(100dvh - 136px); +} +.docs-toc a { + border-left: 1px solid var(--docs-border); + padding-left: 12px; + margin-left: 1px; +} +.docs-toc a.nested { + padding-left: 24px; +} +.docs-toc a.current { + border-color: var(--foreground); + color: var(--foreground); + font-weight: 500; +} +.docs-content { + font-size: 14px; + line-height: 1.8; +} +.docs-content h2:not(:where(.not-prose, .not-prose *)) { + font-size: 22px; + margin-top: 40px; +} +.docs-content h3:not(:where(.not-prose, .not-prose *)) { + font-size: 17px; + margin-top: 30px; +} +.docs-content th { + color: var(--foreground); + background: var(--default-soft); +} +.docs-content td { + line-height: 1.75; +} +.docs-content table { + scrollbar-width: thin; + overscroll-behavior-inline: contain; +} +.docs-content pre { + font-size: 13px; + line-height: 1.7; + tab-size: 2; + scrollbar-width: thin; +} +.preview { + min-height: 280px; + background: var(--background); + isolation: isolate; +} +.component-preview-container[data-name^="card-"] .preview { + min-height: 350px; +} +.demo-row { + min-width: 0; +} +@layer components { + .preview .demo-row > *, + .preview [data-slot="card"] { + max-width: 100%; + min-width: 0; + } +} +.preview .acme-card, +.preview .basic-input, +.preview .controlled-input, +.preview .input-stack, +.preview .surface-demo { + max-width: 100%; +} +.code-toolbar { + padding: 6px 12px; + background: var(--default-soft); + min-height: 46px; +} +.code-language { + display: flex; + align-items: center; + gap: 7px; + font-size: 12px; +} +.code-dot { + width: 6px; + height: 6px; + border-radius: 50%; + background: #42b883; +} +.code-toolbar > div { + gap: 4px; +} +.code-toolbar button { + display: inline-flex; + align-items: center; + justify-content: center; + gap: 6px; + min-height: 34px; + padding: 6px 9px; + border-radius: 6px; +} +.code-toolbar button:hover { + color: var(--foreground); + background: var(--default); +} +.copy-feedback { + margin: 0 !important; + padding: 4px 16px 8px; + font-size: 12px; + color: var(--muted); +} +.highlighted-source { + max-height: 430px; + overflow: auto; + border-top: 1px solid var(--separator); + background: var(--surface); + scrollbar-width: thin; +} +.docs-content .highlighted-source div[class*="language-"] { + border: 0; + border-radius: 0; + margin: 0; + background: transparent; +} +.highlighted-source .lang, +.highlighted-source .copy { + display: none !important; +} +.docs-content .highlighted-source pre { + max-height: none; + overflow: visible; +} +.docs-content div[class*="language-"] > .copy { + display: block; + position: absolute; + z-index: 1; + top: 6px; + right: 8px; + width: 30px; + height: 30px; + border: 1px solid var(--docs-border); + border-radius: 6px; + background: var(--surface); + color: var(--muted); +} +.docs-content div[class*="language-"] > .copy::before { + content: "⧉"; + font-size: 19px; +} +.docs-content div[class*="language-"] > .copy.copied::before { + content: "✓"; + font-size: 15px; +} +.docs-content div[class*="language-"] > .lang { + right: 48px; + top: 9px; +} +.docs-content .custom-block { + line-height: 1.8; +} +.page-navigation { + display: grid; + grid-template-columns: 1fr 1fr; + gap: 12px; + margin-top: 48px; +} +.page-navigation a { + display: flex; + flex-direction: column; + gap: 5px; + padding: 16px; + border: 1px solid var(--docs-border); + border-radius: 10px; +} +.page-navigation a:hover { + background: var(--default-soft); + border-color: var(--muted); +} +.page-navigation span { + font-size: 12px; + color: var(--muted); +} +.page-navigation strong { + font-size: 14px; + font-weight: 500; +} +.page-next { + grid-column: 2; + text-align: right; +} +.docs-footer { + margin-top: 28px; + font-size: 12px; + line-height: 1.8; +} +.theme-toggle, +.mobile-menu { + display: inline-flex; + align-items: center; + justify-content: center; + flex-shrink: 0; + width: 36px; + height: 36px; + border-radius: 8px; + background: transparent; + color: var(--muted); +} +.theme-toggle:hover, +.mobile-menu:hover { + background: var(--default); + color: var(--foreground); +} +.mobile-menu { + display: none; +} +.sr-only { + position: absolute !important; + width: 1px !important; + height: 1px !important; + padding: 0 !important; + margin: -1px !important; + overflow: hidden !important; + clip: rect(0, 0, 0, 0) !important; + white-space: nowrap !important; + border: 0 !important; +} +.search-trigger { + display: flex; + align-items: center; + gap: 9px; + border: 1px solid var(--docs-border); + border-radius: 9px; + background: var(--default-soft); + color: var(--muted); + padding: 7px 10px; + min-height: 36px; + font-size: 12px; + min-width: 220px; +} +.search-trigger kbd { + font-family: inherit; + font-size: 10px; + margin-left: auto; + background: var(--surface); + padding: 2px 5px; + border-radius: 4px; + border: 1px solid var(--docs-border); +} +.search-overlay, +.mobile-nav-overlay { + position: fixed; + inset: 0; + z-index: 50; + background: rgba(0, 0, 0, 0.35); + backdrop-filter: blur(3px); +} +.search-dialog { + position: fixed; + z-index: 51; + top: min(16vh, 120px); + left: 50%; + transform: translateX(-50%); + width: min(620px, calc(100vw - 32px)); + border: 1px solid var(--docs-border); + border-radius: 16px; + background: var(--overlay); + box-shadow: var(--overlay-shadow); + overflow: hidden; + color: var(--foreground); +} +.search-field { + display: flex; + align-items: center; + padding: 8px 12px; + border-bottom: 1px solid var(--docs-border); +} +.search-field input { + flex: 1; + min-width: 0; + border: 0; + background: transparent; + padding: 12px; + font-size: 16px; + outline: none; + color: inherit; +} +.search-close { + padding: 5px 7px; + font-size: 11px; + border: 1px solid var(--docs-border); + border-radius: 5px; + background: var(--default-soft); + color: var(--muted); +} +.search-dialog .search-results { + position: static; + max-height: calc(65dvh - 100px); + overflow: auto; + width: 100%; + border: 0; + border-radius: 0; + box-shadow: none; + background: transparent; + padding: 8px; +} +.search-results a { + display: block; + padding: 12px; + border-radius: 9px; + border: 1px solid transparent; + color: var(--foreground); +} +.search-results a[aria-selected="true"] { + background: var(--default); + border-color: var(--docs-border); +} +.result-title { + display: flex; + gap: 10px; + font-size: 14px; + font-weight: 500; + align-items: center; +} +.result-title > span { + font-size: 12px; + font-weight: 400; + color: var(--muted); +} +.result-excerpt { + display: block; + margin-top: 5px; + font-size: 12px; + line-height: 1.6; + color: var(--muted); + overflow: hidden; + display: -webkit-box; + -webkit-line-clamp: 2; + -webkit-box-orient: vertical; +} +.search-empty { + font-size: 13px; + color: var(--muted); + padding: 28px 16px !important; + line-height: 1.8; + text-align: center; +} +.search-footer { + display: flex; + justify-content: space-between; + padding: 12px 18px; + font-size: 11px; + border-top: 1px solid var(--docs-border); + color: var(--muted); +} +.mobile-nav-dialog { + position: fixed; + z-index: 51; + inset: 0 auto 0 0; + width: min(340px, 88vw); + overflow: auto; + background: var(--background); + padding: 20px; + color: var(--foreground); + border-right: 1px solid var(--docs-border); +} +.mobile-nav-heading { + display: flex; + align-items: center; + justify-content: space-between; + margin-bottom: 24px; + font-size: 16px; + font-weight: 600; +} +.mobile-nav-heading button { + font-size: 26px; + background: none; + border: 0; + color: var(--muted); + width: 36px; + height: 36px; +} +.mobile-nav-dialog h2 { + font-size: 12px; + color: var(--muted); + font-weight: 500; + margin: 24px 10px 10px; +} +.mobile-nav-dialog nav a { + display: block; + padding: 12px; + border-radius: 8px; + font-size: 14px; +} +.mobile-nav-dialog a[aria-current="page"] { + background: var(--default); + font-weight: 500; +} +@media (max-width: 1150px) { + .docs-body { + grid-template-columns: 228px minmax(0, 1fr); + } + .docs-main { + padding: 32px; + max-width: 820px; + } + .docs-toc { + display: none; + } +} +@media (max-width: 960px) { + .docs-body { + display: block; + } + .docs-sidebar { + display: none; + } + .mobile-menu { + display: inline-flex; + } + .docs-main { + max-width: 780px; + padding: 32px 28px; + } + .docs-nav { + height: 64px; + padding: 0 24px; + } + .docs-nav nav { + margin-left: 8px; + } + .version { + display: none; + } + .nav-tools { + gap: 6px; + } + .search-trigger { + min-width: 180px; + } + .docs-content h2:not(:where(.not-prose, .not-prose *)) { + scroll-margin-top: 80px; + } +} +@media (max-width: 600px) { + .docs-nav { + padding: 0 16px; + } + .docs-nav nav { + display: none; + } + .brand { + font-size: 23px; + } + .brand span { + font-size: 11px; + } + .search-trigger { + min-width: 36px; + width: 36px; + height: 36px; + padding: 8px; + justify-content: center; + background: transparent; + border: 0; + } + .search-trigger span, + .search-trigger kbd { + display: none; + } + .docs-main { + padding: 26px 20px 48px; + } + .breadcrumb { + font-size: 12px; + margin-bottom: 18px; + } + .docs-main > h1 { + font-size: 28px; + line-height: 1.35; + } + .page-description { + font-size: 14px; + } + .source-links { + margin-bottom: 28px; + } + .source-links a { + font-size: 11px; + } + .preview { + min-height: 230px; + padding: 24px 16px; + } + .component-preview-container[data-name^="card-"] .preview { + min-height: 280px; + } + .code-toolbar button { + font-size: 11px; + gap: 4px; + padding: 6px; + } + .docs-content pre { + font-size: 12px; + padding: 18px; + } + .docs-content td, + .docs-content th { + padding: 12px 10px; + } + .search-dialog { + top: 12px; + width: calc(100vw - 24px); + } + .search-trigger kbd { + display: none; + } + .page-navigation a { + padding: 12px; + } + .page-navigation strong { + font-size: 13px; + } +} +@media (max-width: 600px) { + .theme-toggle, + .mobile-menu, + .search-trigger { + width: 40px; + height: 40px; + } + .docs-content h2, + .docs-content h3 { + overflow-wrap: anywhere; + } +} diff --git a/apps/docs/.vitepress/theme/utilities.css b/apps/docs/.vitepress/theme/utilities.css new file mode 100644 index 0000000..629c314 --- /dev/null +++ b/apps/docs/.vitepress/theme/utilities.css @@ -0,0 +1,15 @@ +@import "tailwindcss/theme.css" layer(theme); +@import "../../../../packages/styles/themes/shared/theme.css"; +@import "tailwindcss/utilities.css" layer(utilities); +@source "../../demos"; + +/* Follow the document's explicit theme, including nested preview scopes. */ +@custom-variant dark (&:where(.dark, .dark *, [data-theme="dark"], [data-theme="dark"] *)); +@custom-variant motion-reduce { + &:is([data-reduce-motion="true"], [data-reduce-motion="true"] *) { + @slot; + } + @media (prefers-reduced-motion: reduce) { + @slot; + } +} diff --git a/apps/docs/components.md b/apps/docs/components.md new file mode 100644 index 0000000..4c7f257 --- /dev/null +++ b/apps/docs/components.md @@ -0,0 +1,9 @@ +--- +title: 组件 +description: 已迁移组件及文档 +--- + +- [Button 按钮](./components/button) +- [Card 卡片](./components/card) +- [Input 输入框](./components/input) +- [Switch 开关](./components/switch) diff --git a/apps/docs/components/button.md b/apps/docs/components/button.md new file mode 100644 index 0000000..6c3fc66 --- /dev/null +++ b/apps/docs/components/button.md @@ -0,0 +1,142 @@ +--- +title: Button 按钮 +description: 可点击的按钮组件,支持多种变体与状态 +component: button +group: 组件 +--- + +## 用法 + +```vue + +``` + + + +## 示例 + +### 变体 + + + +### 尺寸 + + + +### 带图标 + + + +### 仅图标 + + + +### 加载中 + +此例固定展示上传中的外观;加载期间阻止重复提交,但保留键盘焦点。要体验开始、完成和再次上传,请使用下一例。 + + + +### 加载中(点击触发) + +点击“上传文件”后进入加载状态,2 秒后恢复,可重复操作。 + + + +### 宽度充满 + + + +### 禁用状态 + + + +### 社交媒体按钮 + + + +### 渲染函数 + +Vue 使用 `asChild` 将按钮属性与交互合并到一个自定义原生 button,作用域插槽提供状态。对应上游 render 函数示例,不将 render prop 原样搬入 Vue。 + + + +### 添加自定义变体 + +可通过包装组件并添加自定义变体来扩展组件。下面使用与上游相同的 `tv` 扩展方式,提供额外的圆角与尺寸配置。 + + + +### 添加涟漪效果 + +通过组合添加涟漪。本示例使用 Vue 和 CSS 实现,支持指针、Enter 和空格触发;不直接依赖上游 React 的 m3-ripple,减少动态效果时缩短动画。 + + + +## 自定义样式 + +### Tailwind CSS + + + +使用标准 `class` 属性添加工具类。组件保持上游的尺寸、间距、BEM 结构与状态钩子;类名前缀改为 `hv-`。 + +```vue + +``` + +### 全局 CSS + +```css +@layer components { + .hv-button--primary { + --button-bg: oklch(0.6 0.2 300); + } +} +``` + +## 样式参考 + +基础类为 `.hv-button`,变体为 `.hv-button--primary` 等;尺寸为 `.hv-button--sm` / `md` / `lg`。支持 `.hv-button--icon-only` 和 `.hv-button--full-width`。 + +### 交互状态 + +保留 `data-hovered`、`data-pressed`、`data-focused`、`data-focus-visible`、`data-pending` 状态;键盘焦点样式与鼠标焦点区分。加载期间保留焦点并阻止重复点击,通过 aria-disabled 呈现半透明的原变体颜色。 + +## API 参考 + +### Button + +| Prop | 类型 | 默认值 | 描述 | +| ------------ | --------------------------------------------------------------------------------------------- | ----------- | --------------------------------------------- | +| `variant` | `'primary' \| 'secondary' \| 'tertiary' \| 'outline' \| 'ghost' \| 'danger' \| 'danger-soft'` | `'primary'` | 视觉样式变体 | +| `size` | `'sm' \| 'md' \| 'lg'` | `'md'` | 按钮尺寸 | +| `fullWidth` | `boolean` | `false` | 是否占满容器宽度 | +| `isDisabled` | `boolean` | `false` | 是否禁用 | +| `isPending` | `boolean` | `false` | 是否处于加载状态 | +| `isIconOnly` | `boolean` | `false` | 是否仅包含图标 | +| `asChild` | `boolean` | `false` | 将属性与交互合并到默认插槽中唯一的原生 button | +| `type` | `'button' \| 'submit' \| 'reset'` | `'button'` | 原生按钮类型 | + +### 事件与插槽 + +Vue 使用 `@click` 和默认作用域插槽。插槽提供 `isPending`、`isPressed`、`isHovered`、`isFocused`、`isFocusVisible`、`isDisabled`。原生属性、class、style、事件透传至 button。 + +`onPress` / PressEvent 与 `@click` 的事件模型不同,不宣称完全等价。初版 `disabled` / `loading` 继续作为兼容别名;新代码使用 `isDisabled` / `isPending`。`isPending` 不自动插入加载图标,采用上游的组合方式。`loading` 是相同加载语义的兼容别名,额外自动显示旋转图标;不会设置原生 disabled。`asChild` 下内容由调用者完整组合,默认插槽必须只包含一个原生 button。 + +### 作用域插槽状态 + +| 参数 | 类型 | 描述 | +| ---------------- | --------- | -------------------------------- | +| `isPending` | `boolean` | 是否处于加载状态 | +| `isPressed` | `boolean` | 是否正在按下 | +| `isHovered` | `boolean` | 是否悬停 | +| `isFocused` | `boolean` | 是否聚焦 | +| `isFocusVisible` | `boolean` | 是否显示键盘焦点指示器 | +| `isDisabled` | `boolean` | 是否由禁用属性禁用,不与加载混用 | + +## 相关组件 + +[Card 卡片](./card) · [Input 输入框](./input) · [Switch 开关](./switch) diff --git a/apps/docs/components/card.md b/apps/docs/components/card.md new file mode 100644 index 0000000..2a5791c --- /dev/null +++ b/apps/docs/components/card.md @@ -0,0 +1,121 @@ +--- +title: Card 卡片 +description: 灵活容器组件,用于分组相关内容与操作 +component: card +group: 组件 +--- + +## 用法 + +```vue + +``` + + +## 组件结构 + +```vue + + + + + + + + +``` + +## 示例 + +### 变体 + +Card 提供语义变体,描述 prominence 级别而非具体视觉样式,允许主题以不同方式解读: + + + +- `transparent`:透明背景,无阴影,适合嵌套卡片。 +- `default`:标准卡片,使用 `--surface`。 +- `secondary`:使用 `--surface-secondary`。 +- `tertiary`:使用 `--surface-tertiary`。 + +基线中文说明中的部分表面映射与实际 CSS 不一致;这里以固定提交的 CSS 为准。 + +### 水平布局 + + + +### 带头像 + + + +### 带图片 + + + +### 搭配表单 + + + +头像使用 Reka Avatar 组合;链接与表单使用原生 HTML,标签与输入显式关联。此示例不发送登录请求;图片沿用上游公开资源地址。 + +## 自定义样式 + +### Tailwind CSS + + + +### 全局 CSS + +```css +@layer components { + .hv-card__title { + font-weight: 700; + } +} +``` + +## 样式参考 + +| 部件 | CSS 类 | data-slot | 默认元素 | +| --------------- | ----------------------- | ------------------ | -------- | +| Card | `.hv-card` | `card` | div | +| CardHeader | `.hv-card__header` | `card-header` | div | +| CardTitle | `.hv-card__title` | `card-title` | h3 | +| CardDescription | `.hv-card__description` | `card-description` | p | +| CardContent | `.hv-card__content` | `card-content` | div | +| CardFooter | `.hv-card__footer` | `card-footer` | div | + +## API 参考 + +### Card + +| Prop | 类型 | 默认值 | 描述 | +| --------- | --------------------------------------------------------- | ----------- | ------------------------------ | +| `variant` | `'transparent' \| 'default' \| 'secondary' \| 'tertiary'` | `'default'` | 表示 prominence 级别的语义变体 | +| `as` | `string` | `'div'` | 渲染的 HTML 元素 | +| `class` | `string / object / array` | — | Vue 标准类名合并 | + +### CardHeader / CardTitle / CardDescription / CardContent / CardFooter + +各部件支持 `as`、默认插槽和原生属性。默认标签见上表。Vue 使用独立命名导出替代 `Card.Header` 等 React 部件访问方式。 + +## 无障碍 + +```vue + + Article Title + +``` + +## 相关组件 + +[Button 按钮](./button) · [Input 输入框](./input) diff --git a/apps/docs/components/input.md b/apps/docs/components/input.md new file mode 100644 index 0000000..4acf78b --- /dev/null +++ b/apps/docs/components/input.md @@ -0,0 +1,98 @@ +--- +title: Input 输入框 +description: 接受标准 HTML 属性的原生单行文本输入组件 +component: input +group: 组件 +--- + +## 用法 + +```vue + +``` + + + +::: info 字段组合 +校验、标签与错误消息由 TextField 体系负责。TextField 尚未迁移,当前请使用原生 label、aria-describedby 和 aria-invalid 关联。 +::: + +## 示例 + +### 变体 + +Input 组件支持两种视觉变体: + +- **primary**(默认):标准样式带阴影,适用于大多数场景。 +- **secondary**:低强调变体无阴影,适用于 Surface 组件内。 + + + +### 表面样式 + +在表面容器内使用 `variant="secondary"` 以应用适合背景的低强调变体。 + + + +### 宽度充满 + + + +### 输入类型 + + + +### 受控组件 + + + +## 自定义样式 + +### Tailwind CSS + + + +### 全局 CSS + +```css +@layer components { + .hv-input { + border-radius: 8px; + } +} +``` + +## 样式参考 + +基础类 `.hv-input`;变体 `.hv-input--primary` / `.hv-input--secondary`;宽度修饰符 `.hv-input--full-width`。保留原生 hover / focus / disabled 和 `data-invalid` 状态。 + +## API 参考 + +### Input + +Input 接受标准 HTML input 属性,以及以下 props: + +| Prop | 类型 | 默认值 | 描述 | +| --------------------------------------------------- | -------------------------- | ----------- | --------------------------------- | +| `modelValue` | `string` | — | 受控值,使用 v-model | +| `defaultValue` | `string` | `''` | 非受控初始值 | +| `variant` | `'primary' \| 'secondary'` | `'primary'` | 视觉变体 | +| `fullWidth` | `boolean` | `false` | 是否占满容器宽度 | +| `type` | `string` | `'text'` | 原生输入类型 | +| `invalid` | `boolean` | `false` | 设置 aria-invalid 和 data-invalid | +| `disabled` / `readonly` / `required` | `boolean` | `false` | 原生表单状态 | +| `name` / `placeholder` / `autocomplete` / `pattern` | `string` | — | 原生输入属性 | +| `maxlength` / `minlength` | `number` | — | 长度限制 | +| `min` / `max` / `step` | `string / number` | — | 数值与日期约束 | + +### 事件与方法 + +`update:modelValue` 传递字符串;`@input` / `@change` 保留原生事件。`focus()` 可通过模板引用调用。原生表单 reset 还原非受控初始值;受控值由父组件管理。 + +不把 React 的 `value` + `onChange` 直接复制为 Vue 状态 API。`className` 改为 `class`。TextField 上下文的自动继承尚未实现。 + +## 相关组件 + +[Button 按钮](./button) · [Card 卡片](./card) diff --git a/apps/docs/components/switch.md b/apps/docs/components/switch.md new file mode 100644 index 0000000..199550d --- /dev/null +++ b/apps/docs/components/switch.md @@ -0,0 +1,179 @@ +--- +title: Switch 开关 +description: 用于布尔状态的开关组件。 +component: switch +group: 组件 +--- + +## 用法 + +```vue + +``` + + +## 组件结构 + +```vue + + + + 启用通知 + + 允许接收通知 + +``` + +请把 SwitchControl 与标签文本放入 SwitchContent;Description 作为其兄弟节点。Vue 底座使用原生 button 承载 role="switch",不是 React Aria 的 label 结构。 + +## 示例 + +### 尺寸 + + + +### 带图标 + + + +### 禁用 + + + +### 无标签 + + + +### 带描述 + + + +### 默认选中 + + + +### 受控组件 + + + +### 标签位置 + + + +### 分组 + + + +### 横向分组 + + + +### 表单集成 + + + +### 渲染属性 + +Vue 使用作用域插槽读取选择状态。 + + + +### 渲染函数 + +Vue 使用 `asChild` 合并根容器属性,默认插槽必须只有一个自定义根元素;内部仍需放置 SwitchContent。 + + + +## 自定义样式 + +### Tailwind CSS + + + +### 全局 CSS + +```css +@layer components { + .hv-switch__control { + border-radius: 12px; + } +} +``` + +## 样式参考 + +保留字段根容器、Content、Control、Thumb、Icon 的组合结构和 data-slot;类名前缀为 `hv-`。选中状态使用 `data-selected="true"`,禁用使用 `data-disabled="true"`。尺寸与滑块比例移植自基线 CSS。 + +## API 参考 + +### Switch + +| Prop | 类型 | 默认值 | 描述 | +| -------------------- | --------------------------------------------------------------------- | ---------- | -------------------------------- | +| `size` | `'sm' \| 'md' \| 'lg'` | `'md'` | Switch 尺寸 | +| `checked` | `boolean` | — | Vue 受控值,使用 v-model:checked | +| `isSelected` | `boolean` | — | 上游同名受控属性,优先于 checked | +| `defaultSelected` | `boolean` | `false` | 非受控初始值 | +| `isDisabled` | `boolean` | `false` | 是否禁用 | +| `isReadOnly` | `boolean` | `false` | 是否只读 | +| `isInvalid` | `boolean` | `false` | ARIA 无效状态 | +| `isRequired` | `boolean` | `false` | 是否必须开启 | +| `name` | `string` | — | 表单字段名称 | +| `value` | `string` | — | 表单提交值 | +| `asChild` | `boolean` | `false` | 合并根属性到唯一自定义容器 | +| `validate` | `(value: boolean) => string \| string[] \| true \| null \| undefined` | — | 自定义校验 | +| `validationBehavior` | `'native' \| 'aria'` | `'native'` | 校验与错误展示方式 | + +### SwitchContent / SwitchControl / SwitchThumb / SwitchIcon + +分别对应上游 Content、Control、Thumb、Icon。Content 提供可点击的开关语义,其余为可组合样式部件。空默认插槽会自动渲染轨道与滑块;使用自定义插槽时由调用者组合部件。 + +### 事件与插槽 + +`update:checked`、`update:isSelected` 与 `change` 都传递 boolean。根作用域插槽提供 isSelected、isDisabled、isReadOnly、isInvalid、isRequired。根 attrs 的 class/style/data-* 应用到字段容器,ARIA 与 DOM 事件透传到 Content 按钮。 + +### 表单与校验 + +`validate(value)` 返回错误字符串、字符串数组,或 `true` / `null` / `undefined` 表示通过。`validationBehavior="native"`(默认)通过原生 checkbox 的约束阻止无效表单提交,校验失败后展示错误并将焦点交给开关;`"aria"` 立即设置 ARIA 错误状态,提交由调用者处理。 + +```vue + + 同意接收通知 + 可随时在设置中关闭。 + + +``` + +Description 与 FieldError 自动生成唯一 ID,并关联到 Content 的 aria-describedby。表单 reset 恢复非受控初值;受控值由父组件管理。 + +### SwitchGroup + +| Prop | 类型 | 默认值 | 描述 | +| ------------- | ---------------------------- | ------------ | ---------- | +| `orientation` | `'horizontal' \| 'vertical'` | `'vertical'` | 组布局方向 | + +SwitchGroup 是布局容器,每个 Switch 独立维护值;请提供 aria-label 或 aria-labelledby 标注分组。 + +### 当前差异 + +`disabled` / `required` / `defaultChecked` 作为兼容别名保留。`change` 事件传递 boolean;React Aria 的 PressEvent 仍不等价于 DOM click。根组件的 class/style/data-* 作用于字段容器,ARIA 与 DOM 事件作用于 Content 按钮;Content 上的显式属性可覆盖默认透传。`asChild` 替代 React render prop。FieldError 当前仅接入 Switch 字段,尚未提供完整 TextField / Form 体系。 + +## 相关组件 + +[Button 按钮](./button) · [Input 输入框](./input) diff --git a/apps/docs/demos/button-basic.vue b/apps/docs/demos/button-basic.vue new file mode 100644 index 0000000..9003d7f --- /dev/null +++ b/apps/docs/demos/button-basic.vue @@ -0,0 +1,8 @@ + + diff --git a/apps/docs/demos/button-custom-styles.vue b/apps/docs/demos/button-custom-styles.vue new file mode 100644 index 0000000..6bd6a58 --- /dev/null +++ b/apps/docs/demos/button-custom-styles.vue @@ -0,0 +1,35 @@ + + + diff --git a/apps/docs/demos/button-custom-variants.vue b/apps/docs/demos/button-custom-variants.vue new file mode 100644 index 0000000..c0cd003 --- /dev/null +++ b/apps/docs/demos/button-custom-variants.vue @@ -0,0 +1,58 @@ + + diff --git a/apps/docs/demos/button-disabled.vue b/apps/docs/demos/button-disabled.vue new file mode 100644 index 0000000..0eb46f1 --- /dev/null +++ b/apps/docs/demos/button-disabled.vue @@ -0,0 +1,13 @@ + + diff --git a/apps/docs/demos/button-full-width.vue b/apps/docs/demos/button-full-width.vue new file mode 100644 index 0000000..6c5a501 --- /dev/null +++ b/apps/docs/demos/button-full-width.vue @@ -0,0 +1,22 @@ + + + diff --git a/apps/docs/demos/button-icon-only.vue b/apps/docs/demos/button-icon-only.vue new file mode 100644 index 0000000..8ad0674 --- /dev/null +++ b/apps/docs/demos/button-icon-only.vue @@ -0,0 +1,17 @@ + + diff --git a/apps/docs/demos/button-loading-state.vue b/apps/docs/demos/button-loading-state.vue new file mode 100644 index 0000000..b01e73a --- /dev/null +++ b/apps/docs/demos/button-loading-state.vue @@ -0,0 +1,52 @@ + + + diff --git a/apps/docs/demos/button-loading.vue b/apps/docs/demos/button-loading.vue new file mode 100644 index 0000000..a56ecf9 --- /dev/null +++ b/apps/docs/demos/button-loading.vue @@ -0,0 +1,17 @@ + + diff --git a/apps/docs/demos/button-render-function.vue b/apps/docs/demos/button-render-function.vue new file mode 100644 index 0000000..6d0ceff --- /dev/null +++ b/apps/docs/demos/button-render-function.vue @@ -0,0 +1,8 @@ + + diff --git a/apps/docs/demos/button-ripple-effect.vue b/apps/docs/demos/button-ripple-effect.vue new file mode 100644 index 0000000..56e87d9 --- /dev/null +++ b/apps/docs/demos/button-ripple-effect.vue @@ -0,0 +1,74 @@ + + + diff --git a/apps/docs/demos/button-sizes.vue b/apps/docs/demos/button-sizes.vue new file mode 100644 index 0000000..809ccdb --- /dev/null +++ b/apps/docs/demos/button-sizes.vue @@ -0,0 +1,10 @@ + + diff --git a/apps/docs/demos/button-social.vue b/apps/docs/demos/button-social.vue new file mode 100644 index 0000000..794cf15 --- /dev/null +++ b/apps/docs/demos/button-social.vue @@ -0,0 +1,33 @@ + + + diff --git a/apps/docs/demos/button-variants.vue b/apps/docs/demos/button-variants.vue new file mode 100644 index 0000000..2c94385 --- /dev/null +++ b/apps/docs/demos/button-variants.vue @@ -0,0 +1,14 @@ + + diff --git a/apps/docs/demos/button-with-icons.vue b/apps/docs/demos/button-with-icons.vue new file mode 100644 index 0000000..c94a639 --- /dev/null +++ b/apps/docs/demos/button-with-icons.vue @@ -0,0 +1,29 @@ + + diff --git a/apps/docs/demos/card-custom-styles.vue b/apps/docs/demos/card-custom-styles.vue new file mode 100644 index 0000000..4f74249 --- /dev/null +++ b/apps/docs/demos/card-custom-styles.vue @@ -0,0 +1,70 @@ + + diff --git a/apps/docs/demos/card-default.vue b/apps/docs/demos/card-default.vue new file mode 100644 index 0000000..937e22b --- /dev/null +++ b/apps/docs/demos/card-default.vue @@ -0,0 +1,34 @@ + + diff --git a/apps/docs/demos/card-horizontal.vue b/apps/docs/demos/card-horizontal.vue new file mode 100644 index 0000000..81cdcfd --- /dev/null +++ b/apps/docs/demos/card-horizontal.vue @@ -0,0 +1,53 @@ + + diff --git a/apps/docs/demos/card-variants.vue b/apps/docs/demos/card-variants.vue new file mode 100644 index 0000000..6d6d4c4 --- /dev/null +++ b/apps/docs/demos/card-variants.vue @@ -0,0 +1,52 @@ + + diff --git a/apps/docs/demos/card-with-avatar.vue b/apps/docs/demos/card-with-avatar.vue new file mode 100644 index 0000000..372f0f0 --- /dev/null +++ b/apps/docs/demos/card-with-avatar.vue @@ -0,0 +1,75 @@ + + diff --git a/apps/docs/demos/card-with-form.vue b/apps/docs/demos/card-with-form.vue new file mode 100644 index 0000000..3c46369 --- /dev/null +++ b/apps/docs/demos/card-with-form.vue @@ -0,0 +1,71 @@ + + diff --git a/apps/docs/demos/card-with-images.vue b/apps/docs/demos/card-with-images.vue new file mode 100644 index 0000000..f6d0c1a --- /dev/null +++ b/apps/docs/demos/card-with-images.vue @@ -0,0 +1,289 @@ + + diff --git a/apps/docs/demos/input-basic.vue b/apps/docs/demos/input-basic.vue new file mode 100644 index 0000000..e4fa4c7 --- /dev/null +++ b/apps/docs/demos/input-basic.vue @@ -0,0 +1,6 @@ + + diff --git a/apps/docs/demos/input-controlled.vue b/apps/docs/demos/input-controlled.vue new file mode 100644 index 0000000..3600ed4 --- /dev/null +++ b/apps/docs/demos/input-controlled.vue @@ -0,0 +1,13 @@ + + diff --git a/apps/docs/demos/input-custom-styles.vue b/apps/docs/demos/input-custom-styles.vue new file mode 100644 index 0000000..93e3ca3 --- /dev/null +++ b/apps/docs/demos/input-custom-styles.vue @@ -0,0 +1,10 @@ + + diff --git a/apps/docs/demos/input-full-width.vue b/apps/docs/demos/input-full-width.vue new file mode 100644 index 0000000..92e1649 --- /dev/null +++ b/apps/docs/demos/input-full-width.vue @@ -0,0 +1,8 @@ + + diff --git a/apps/docs/demos/input-on-surface.vue b/apps/docs/demos/input-on-surface.vue new file mode 100644 index 0000000..52430f6 --- /dev/null +++ b/apps/docs/demos/input-on-surface.vue @@ -0,0 +1,15 @@ + + diff --git a/apps/docs/demos/input-types.vue b/apps/docs/demos/input-types.vue new file mode 100644 index 0000000..a20308c --- /dev/null +++ b/apps/docs/demos/input-types.vue @@ -0,0 +1,21 @@ + + diff --git a/apps/docs/demos/input-variants.vue b/apps/docs/demos/input-variants.vue new file mode 100644 index 0000000..ec49d3d --- /dev/null +++ b/apps/docs/demos/input-variants.vue @@ -0,0 +1,19 @@ + + diff --git a/apps/docs/demos/switch-basic.vue b/apps/docs/demos/switch-basic.vue new file mode 100644 index 0000000..e3cb3f9 --- /dev/null +++ b/apps/docs/demos/switch-basic.vue @@ -0,0 +1,18 @@ + + diff --git a/apps/docs/demos/switch-controlled.vue b/apps/docs/demos/switch-controlled.vue new file mode 100644 index 0000000..0688cc7 --- /dev/null +++ b/apps/docs/demos/switch-controlled.vue @@ -0,0 +1,21 @@ + + diff --git a/apps/docs/demos/switch-custom-styles.vue b/apps/docs/demos/switch-custom-styles.vue new file mode 100644 index 0000000..1119506 --- /dev/null +++ b/apps/docs/demos/switch-custom-styles.vue @@ -0,0 +1,25 @@ + + diff --git a/apps/docs/demos/switch-default-selected.vue b/apps/docs/demos/switch-default-selected.vue new file mode 100644 index 0000000..5288859 --- /dev/null +++ b/apps/docs/demos/switch-default-selected.vue @@ -0,0 +1,18 @@ + + diff --git a/apps/docs/demos/switch-disabled.vue b/apps/docs/demos/switch-disabled.vue new file mode 100644 index 0000000..1b44227 --- /dev/null +++ b/apps/docs/demos/switch-disabled.vue @@ -0,0 +1,18 @@ + + diff --git a/apps/docs/demos/switch-form.vue b/apps/docs/demos/switch-form.vue new file mode 100644 index 0000000..71f847d --- /dev/null +++ b/apps/docs/demos/switch-form.vue @@ -0,0 +1,57 @@ + + diff --git a/apps/docs/demos/switch-group-horizontal.vue b/apps/docs/demos/switch-group-horizontal.vue new file mode 100644 index 0000000..0cd7086 --- /dev/null +++ b/apps/docs/demos/switch-group-horizontal.vue @@ -0,0 +1,37 @@ + + diff --git a/apps/docs/demos/switch-group.vue b/apps/docs/demos/switch-group.vue new file mode 100644 index 0000000..612a7fb --- /dev/null +++ b/apps/docs/demos/switch-group.vue @@ -0,0 +1,37 @@ + + diff --git a/apps/docs/demos/switch-label-position.vue b/apps/docs/demos/switch-label-position.vue new file mode 100644 index 0000000..ddad8d0 --- /dev/null +++ b/apps/docs/demos/switch-label-position.vue @@ -0,0 +1,28 @@ + + diff --git a/apps/docs/demos/switch-render-function.vue b/apps/docs/demos/switch-render-function.vue new file mode 100644 index 0000000..6997da3 --- /dev/null +++ b/apps/docs/demos/switch-render-function.vue @@ -0,0 +1,18 @@ + + diff --git a/apps/docs/demos/switch-render-props.vue b/apps/docs/demos/switch-render-props.vue new file mode 100644 index 0000000..31d16ef --- /dev/null +++ b/apps/docs/demos/switch-render-props.vue @@ -0,0 +1,16 @@ + + diff --git a/apps/docs/demos/switch-sizes.vue b/apps/docs/demos/switch-sizes.vue new file mode 100644 index 0000000..59b7643 --- /dev/null +++ b/apps/docs/demos/switch-sizes.vue @@ -0,0 +1,36 @@ + + diff --git a/apps/docs/demos/switch-with-description.vue b/apps/docs/demos/switch-with-description.vue new file mode 100644 index 0000000..2e571aa --- /dev/null +++ b/apps/docs/demos/switch-with-description.vue @@ -0,0 +1,22 @@ + + diff --git a/apps/docs/demos/switch-with-icons.vue b/apps/docs/demos/switch-with-icons.vue new file mode 100644 index 0000000..0a5e0e8 --- /dev/null +++ b/apps/docs/demos/switch-with-icons.vue @@ -0,0 +1,79 @@ + + diff --git a/apps/docs/demos/switch-without-label.vue b/apps/docs/demos/switch-without-label.vue new file mode 100644 index 0000000..e6218e3 --- /dev/null +++ b/apps/docs/demos/switch-without-label.vue @@ -0,0 +1,17 @@ + + diff --git a/apps/docs/guide.md b/apps/docs/guide.md new file mode 100644 index 0000000..22577da --- /dev/null +++ b/apps/docs/guide.md @@ -0,0 +1,65 @@ +--- +title: 安装 +description: 在 Vue 项目中开始使用 HeroUI Vue +--- + +## 本地开发 + +包尚未发布,目前通过独立工作区开发和使用。 + +```sh +pnpm install +pnpm build +pnpm dev:docs +``` + +## 使用组件 + +```vue + + + +``` + +## 图标 + +文档示例统一使用 [Tabler Icons 官方 Vue 包](https://github.com/tabler/tabler-icons/tree/main/packages/icons-vue),按需导入,不需要在线请求图标。 + +```sh +pnpm add @tabler/icons-vue +``` + +```vue + + + +``` + +纯图标按钮必须提供 `aria-label`。图标库是演示应用依赖,组件库通过插槽接受任意图标,不强制消费者安装 Tabler。 + +## 样式入口 + +样式包使用 Tailwind CSS 4 编译基线 CSS,向消费者提供预编译 CSS。消费者不需要安装 Tailwind;自定义工具类需要在自己的应用中配置 Tailwind。 + +## 开发命令 + +| 命令 | 功能 | +| -------------- | --------------- | +| pnpm dev | 组件实验页 | +| pnpm dev:docs | 组件文档 | +| pnpm build | 库与样式构建 | +| pnpm typecheck | Vue 类型检查 | +| pnpm test | 行为与 SSR 测试 | diff --git a/apps/docs/index.md b/apps/docs/index.md new file mode 100644 index 0000000..4bbcbc7 --- /dev/null +++ b/apps/docs/index.md @@ -0,0 +1,142 @@ +--- +title: Button 按钮 +description: 可点击的按钮组件,支持多种变体与状态 +component: button +group: 组件 +--- + +## 用法 + +```vue + +``` + + + +## 示例 + +### 变体 + + + +### 尺寸 + + + +### 带图标 + + + +### 仅图标 + + + +### 加载中 + +此例固定展示上传中的外观;加载期间阻止重复提交,但保留键盘焦点。要体验开始、完成和再次上传,请使用下一例。 + + + +### 加载中(点击触发) + +点击“上传文件”后进入加载状态,2 秒后恢复,可重复操作。 + + + +### 宽度充满 + + + +### 禁用状态 + + + +### 社交媒体按钮 + + + +### 渲染函数 + +Vue 使用 `asChild` 将按钮属性与交互合并到一个自定义原生 button,作用域插槽提供状态。对应上游 render 函数示例,不将 render prop 原样搬入 Vue。 + + + +### 添加自定义变体 + +可通过包装组件并添加自定义变体来扩展组件。下面使用与上游相同的 `tv` 扩展方式,提供额外的圆角与尺寸配置。 + + + +### 添加涟漪效果 + +通过组合添加涟漪。本示例使用 Vue 和 CSS 实现,支持指针、Enter 和空格触发;不直接依赖上游 React 的 m3-ripple,减少动态效果时缩短动画。 + + + +## 自定义样式 + +### Tailwind CSS + + + +使用标准 `class` 属性添加工具类。组件保持上游的尺寸、间距、BEM 结构与状态钩子;类名前缀改为 `hv-`。 + +```vue + +``` + +### 全局 CSS + +```css +@layer components { + .hv-button--primary { + --button-bg: oklch(0.6 0.2 300); + } +} +``` + +## 样式参考 + +基础类为 `.hv-button`,变体为 `.hv-button--primary` 等;尺寸为 `.hv-button--sm` / `md` / `lg`。支持 `.hv-button--icon-only` 和 `.hv-button--full-width`。 + +### 交互状态 + +保留 `data-hovered`、`data-pressed`、`data-focused`、`data-focus-visible`、`data-pending` 状态;键盘焦点样式与鼠标焦点区分。加载期间保留焦点并阻止重复点击,通过 aria-disabled 呈现半透明的原变体颜色。 + +## API 参考 + +### Button + +| Prop | 类型 | 默认值 | 描述 | +| ------------ | --------------------------------------------------------------------------------------------- | ----------- | --------------------------------------------- | +| `variant` | `'primary' \| 'secondary' \| 'tertiary' \| 'outline' \| 'ghost' \| 'danger' \| 'danger-soft'` | `'primary'` | 视觉样式变体 | +| `size` | `'sm' \| 'md' \| 'lg'` | `'md'` | 按钮尺寸 | +| `fullWidth` | `boolean` | `false` | 是否占满容器宽度 | +| `isDisabled` | `boolean` | `false` | 是否禁用 | +| `isPending` | `boolean` | `false` | 是否处于加载状态 | +| `isIconOnly` | `boolean` | `false` | 是否仅包含图标 | +| `asChild` | `boolean` | `false` | 将属性与交互合并到默认插槽中唯一的原生 button | +| `type` | `'button' \| 'submit' \| 'reset'` | `'button'` | 原生按钮类型 | + +### 事件与插槽 + +Vue 使用 `@click` 和默认作用域插槽。插槽提供 `isPending`、`isPressed`、`isHovered`、`isFocused`、`isFocusVisible`、`isDisabled`。原生属性、class、style、事件透传至 button。 + +`onPress` / PressEvent 与 `@click` 的事件模型不同,不宣称完全等价。初版 `disabled` / `loading` 继续作为兼容别名;新代码使用 `isDisabled` / `isPending`。`isPending` 不自动插入加载图标,采用上游的组合方式。`loading` 是相同加载语义的兼容别名,额外自动显示旋转图标;不会设置原生 disabled。`asChild` 下内容由调用者完整组合,默认插槽必须只包含一个原生 button。 + +### 作用域插槽状态 + +| 参数 | 类型 | 描述 | +| ---------------- | --------- | -------------------------------- | +| `isPending` | `boolean` | 是否处于加载状态 | +| `isPressed` | `boolean` | 是否正在按下 | +| `isHovered` | `boolean` | 是否悬停 | +| `isFocused` | `boolean` | 是否聚焦 | +| `isFocusVisible` | `boolean` | 是否显示键盘焦点指示器 | +| `isDisabled` | `boolean` | 是否由禁用属性禁用,不与加载混用 | + +## 相关组件 + +[Card 卡片](/components/card) · [Input 输入框](/components/input) · [Switch 开关](/components/switch) diff --git a/apps/docs/introduction.md b/apps/docs/introduction.md new file mode 100644 index 0000000..1583b23 --- /dev/null +++ b/apps/docs/introduction.md @@ -0,0 +1,22 @@ +--- +title: 介绍 +description: 美观、现代的 Vue UI 组件库 +--- + +## 设计原则 + +以固定提交的 HeroUI v3.2.6 为设计基线,保持组件的样式、布局、文案、变体、参数语义和主题高度一致。仅在框架机制要求时转换事件、插槽、响应式状态与部件导出方式。 + +## 当前范围 + +已迁移 Button、Card、Input、Switch 的主要视觉和组合结构,仍需完整视觉与交互验收。左侧导航只列出实际存在的组件,未迁移的组件不以占位演示代替。 + +## Vue 差异 + +- `className` → `class`。 +- 函数 children → 作用域插槽。 +- `Card.Header` → `CardHeader` 等独立导出。 +- Input 使用 `v-model`;Switch 使用 `v-model:checked`,保留 isSelected 等上游语义属性。 +- 框架专属的 PressEvent 与原生 click 不声明等价。 + +具体未覆盖能力在各组件 API 页说明。此项目为独立社区实现,不是官方 Vue 发行版。 diff --git a/apps/docs/package.json b/apps/docs/package.json new file mode 100644 index 0000000..a7582bd --- /dev/null +++ b/apps/docs/package.json @@ -0,0 +1,21 @@ +{ + "name": "@heroui-vue/docs", + "private": true, + "type": "module", + "scripts": { + "dev": "vitepress dev", + "build": "vitepress build" + }, + "devDependencies": { + "@tailwindcss/vite": "^4.1.0", + "tailwindcss": "^4.1.0", + "vitepress": "^1.6.4" + }, + "dependencies": { + "@heroui-vue/components": "workspace:*", + "@heroui-vue/styles": "workspace:*", + "@tabler/icons-vue": "^3.49.0", + "reka-ui": "^2.11.0", + "vue": "^3.5.44" + } +} diff --git a/apps/docs/public/fonts/Inter-Bold.ttf b/apps/docs/public/fonts/Inter-Bold.ttf new file mode 100644 index 0000000..9fb9b75 Binary files /dev/null and b/apps/docs/public/fonts/Inter-Bold.ttf differ diff --git a/apps/docs/public/fonts/Inter-Medium.ttf b/apps/docs/public/fonts/Inter-Medium.ttf new file mode 100644 index 0000000..458cd06 Binary files /dev/null and b/apps/docs/public/fonts/Inter-Medium.ttf differ diff --git a/apps/docs/public/fonts/Inter-Regular.ttf b/apps/docs/public/fonts/Inter-Regular.ttf new file mode 100644 index 0000000..b7aaca8 Binary files /dev/null and b/apps/docs/public/fonts/Inter-Regular.ttf differ diff --git a/apps/docs/themes.md b/apps/docs/themes.md new file mode 100644 index 0000000..073760a --- /dev/null +++ b/apps/docs/themes.md @@ -0,0 +1,53 @@ +--- +title: 主题 +description: 使用与 HeroUI 相同的语义变量定制组件外观 +--- + +## 默认主题 + +浅色和深色变量移植自固定基线的 default/variables.css,采用相同的 OKLCH 颜色与派生公式。按钮、表面、输入框和开关共同使用这些变量。 + +## 浅色与深色 + +文档右上角切换主题,页面与组件同步更新。应用支持 `.light`、`.dark`、`data-theme="light"` 与 `data-theme="dark"`。 + +```html + +``` + +## 语义颜色 + +| 变量 | 用途 | +| ------------------------------------------------------------- | ------------------ | +| --background / --foreground | 页面背景与正文 | +| --surface / --surface-secondary / --surface-tertiary | 分层表面 | +| --accent / --accent-foreground | 主要操作与选中状态 | +| --default / --default-foreground | 默认控件背景与文字 | +| --muted | 次要文本 | +| --danger / --danger-foreground | 危险操作与无效状态 | +| --field-background / --field-foreground / --field-placeholder | 表单输入 | +| --border / --separator / --focus | 边界、分隔和焦点 | + +## 自定义主题 + +```css +[data-theme="brand"] { + --accent: oklch(0.62 0.2 300); + --accent-foreground: oklch(0.99 0 0); + --radius: 0.75rem; +} +``` + +```html +
...
+``` + +将上述样式放在库样式之后,覆盖容器变量。嵌套容器加上 light 或 dark,使派生颜色在该容器重新计算。浅深自定义主题应分别声明值;应用继承基线的派生颜色与阴影公式。 + +## 圆角与阴影 + +默认 `--radius: 0.5rem`,`--field-radius: calc(var(--radius) * 1.5)`。Card 使用 `min(32px, var(--radius-3xl))`,Button 使用 3xl 圆角。不要为不同页面独立设置近似圆角或品牌蓝。 + +## 动效 + +支持 prefers-reduced-motion 和 data-reduce-motion 状态。保留基线的 hover、press、focus 与过渡时间。 diff --git a/apps/playground/index.html b/apps/playground/index.html new file mode 100644 index 0000000..c6de7f9 --- /dev/null +++ b/apps/playground/index.html @@ -0,0 +1,12 @@ + + + + + + HeroUI Vue · 组件实验室 + + +
+ + + diff --git a/apps/playground/package.json b/apps/playground/package.json new file mode 100644 index 0000000..5f702aa --- /dev/null +++ b/apps/playground/package.json @@ -0,0 +1,18 @@ +{ + "name": "@heroui-vue/playground", + "private": true, + "type": "module", + "scripts": { + "dev": "vite --host 127.0.0.1", + "build": "vite build" + }, + "dependencies": { + "@heroui-vue/components": "workspace:*", + "@heroui-vue/styles": "workspace:*", + "vue": "^3.5.44" + }, + "devDependencies": { + "@tailwindcss/vite": "^4.1.0", + "tailwindcss": "^4.1.0" + } +} diff --git a/apps/playground/src/App.vue b/apps/playground/src/App.vue new file mode 100644 index 0000000..3497e08 --- /dev/null +++ b/apps/playground/src/App.vue @@ -0,0 +1,143 @@ + + diff --git a/apps/playground/src/main.ts b/apps/playground/src/main.ts new file mode 100644 index 0000000..ede816a --- /dev/null +++ b/apps/playground/src/main.ts @@ -0,0 +1,4 @@ +import { createApp } from "vue"; +import App from "./App.vue"; +import "./style.css"; +createApp(App).mount("#app"); diff --git a/apps/playground/src/style.css b/apps/playground/src/style.css new file mode 100644 index 0000000..228647d --- /dev/null +++ b/apps/playground/src/style.css @@ -0,0 +1,295 @@ +@import "tailwindcss"; +@import "../../../packages/styles/dist/styles.css"; +* { + box-sizing: border-box; +} +html { + scroll-behavior: smooth; +} +body { + margin: 0; + font-family: "Avenir Next", "Segoe UI", "PingFang SC", sans-serif; +} +button, +input { + font: inherit; +} +a { + color: inherit; + text-decoration: none; +} +.lab { + min-height: 100vh; + background: var(--background); + color: var(--foreground); + transition: + background 0.2s, + color 0.2s; +} +header { + max-width: 1240px; + margin: auto; + padding: 28px 48px; + display: flex; + align-items: center; + justify-content: space-between; + gap: 24px; + border-bottom: 1px solid var(--border); +} +.wordmark { + font-weight: 800; + font-size: 26px; + letter-spacing: -1.4px; +} +.wordmark span { + color: var(--accent); +} +.wordmark small { + font-size: 12px; + letter-spacing: 0; + font-weight: 600; + padding: 4px 8px; + border-radius: 6px; + background: var(--default); + margin-left: 8px; +} +nav { + display: flex; + gap: 30px; + font-size: 14px; +} +.theme { + display: flex; + gap: 12px; + align-items: center; + font-size: 13px; + color: var(--muted); +} +main { + max-width: 1240px; + margin: auto; + padding: 0 48px; +} +.intro { + padding: 70px 0 64px; +} +.release { + font-size: 14px; + color: var(--muted); + margin: 0 0 22px; +} +h1 { + font-size: clamp(40px, 5.4vw, 68px); + font-weight: 650; + line-height: 1.18; + letter-spacing: -2.5px; + margin: 0 0 22px; +} +.lead { + font-size: 17px; + line-height: 1.9; + color: var(--muted); +} +.text-link { + display: inline-block; + color: var(--accent); + font-weight: 600; + font-size: 14px; + margin-top: 16px; +} +.section-title { + display: flex; + align-items: center; + justify-content: space-between; + margin-bottom: 22px; +} +.section-title h2, +.start h2 { + font-size: 22px; + font-weight: 600; + letter-spacing: -0.6px; +} +.section-title span, +.demo-title span { + font-size: 12px; + color: var(--muted); +} +.grid { + display: grid; + grid-template-columns: 1.1fr 1fr 0.9fr; + gap: 18px; +} +.demo-title { + display: flex; + align-items: center; + justify-content: space-between; + gap: 12px; + margin-bottom: 28px; +} +.demo-title h3 { + font-size: 15px; + font-weight: 650; + margin: 0; +} +.samples { + display: flex; + flex-wrap: wrap; + gap: 12px; + padding-top: 10px; +} +.caption { + font-size: 12px; + line-height: 1.8; + color: var(--muted); + margin: 30px 0 0; +} +.field { + display: grid; + gap: 10px; + font-size: 13px; +} +.setting { + display: flex; + align-items: center; + justify-content: space-between; + gap: 12px; + margin: 24px 0; +} +.setting label { + font-size: 14px; +} +.setting p { + font-size: 12px; + color: var(--muted); + margin: 6px 0 0; +} +.feedback { + font-size: 12px; + color: var(--muted); + min-height: 32px; + line-height: 1.6; + margin-bottom: 0; +} +.swatches { + display: flex; + margin: 8px 0 26px; +} +.swatches i { + display: block; + width: 45px; + height: 45px; + border-radius: 50%; + border: 3px solid var(--default); + margin-right: -9px; + background: #006fee; +} +.swatches i:nth-child(2) { + background: #86b8ff; +} +.swatches i:nth-child(3) { + background: #bba7f7; +} +.swatches i:nth-child(4) { + background: #f4b0c7; +} +.card-demo h4 { + font-size: 24px; + line-height: 1.4; + font-weight: 600; + letter-spacing: -0.7px; + margin: 0 0 14px; +} +.card-demo p { + font-size: 13px; + line-height: 1.8; + color: var(--muted); + margin-bottom: 22px; +} +.start { + margin-top: 56px; + padding: 30px 0; + display: flex; + justify-content: space-between; + align-items: center; + border-top: 1px solid var(--border); + gap: 24px; +} +.start h2 { + margin: 0 0 10px; +} +.start p { + font-size: 14px; + color: var(--muted); +} +.start code { + min-width: 280px; + background: var(--default); + border-radius: 12px; + padding: 20px 26px; + font-size: 13px; + line-height: 2; +} +footer { + display: flex; + justify-content: space-between; + gap: 20px; + padding: 24px 0 30px; + font-size: 12px; + color: var(--muted); +} +@media (max-width: 1000px) { + .grid { + grid-template-columns: 1fr 1fr; + } + .card-demo { + grid-column: 1/-1; + } + .card-demo h4 br { + display: none; + } +} +@media (max-width: 640px) { + header { + padding: 20px 22px; + } + nav { + display: none; + } + .theme { + font-size: 12px; + } + main { + padding: 0 22px; + } + .intro { + padding: 50px 0; + } + h1 { + letter-spacing: -1.5px; + } + .grid { + grid-template-columns: 1fr; + } + .section-title span { + font-size: 11px; + } + .start { + align-items: stretch; + flex-direction: column; + } + .start code { + min-width: 0; + } + footer { + flex-direction: column; + gap: 8px; + } +} +@media (prefers-reduced-motion: reduce) { + html { + scroll-behavior: auto; + } + .lab { + transition: none; + } +} diff --git a/apps/playground/vite.config.ts b/apps/playground/vite.config.ts new file mode 100644 index 0000000..a65e842 --- /dev/null +++ b/apps/playground/vite.config.ts @@ -0,0 +1,17 @@ +import { defineConfig } from "vite"; +import vue from "@vitejs/plugin-vue"; +import tailwindcss from "@tailwindcss/vite"; +import { fileURLToPath, URL } from "node:url"; +export default defineConfig({ + plugins: [vue(), tailwindcss()], + resolve: { + alias: { + "@heroui-vue/components": fileURLToPath( + new URL("../../packages/vue/src/index.ts", import.meta.url), + ), + "@heroui-vue/styles": fileURLToPath( + new URL("../../packages/styles/src/index.ts", import.meta.url), + ), + }, + }, +}); diff --git a/docs/button-examples.png b/docs/button-examples.png new file mode 100644 index 0000000..852fb7a Binary files /dev/null and b/docs/button-examples.png differ diff --git a/docs/card-aligned.png b/docs/card-aligned.png new file mode 100644 index 0000000..a2d21e0 Binary files /dev/null and b/docs/card-aligned.png differ diff --git a/docs/card-close-button-verified.png b/docs/card-close-button-verified.png new file mode 100644 index 0000000..86f9936 Binary files /dev/null and b/docs/card-close-button-verified.png differ diff --git a/docs/card-tailwind-dark-verified.png b/docs/card-tailwind-dark-verified.png new file mode 100644 index 0000000..a850966 Binary files /dev/null and b/docs/card-tailwind-dark-verified.png differ diff --git a/docs/card-tailwind-light-verified.png b/docs/card-tailwind-light-verified.png new file mode 100644 index 0000000..df4a713 Binary files /dev/null and b/docs/card-tailwind-light-verified.png differ diff --git a/docs/compatibility.md b/docs/compatibility.md new file mode 100644 index 0000000..da758ec --- /dev/null +++ b/docs/compatibility.md @@ -0,0 +1,119 @@ +# 兼容矩阵 + +基于固定上游提交的公共组件导出清单。验证中不等于完整兼容;目前没有组件完成视觉、浏览器与完整行为验收。 + +| 组件 | 状态 | 当前能力 / 差异 | +| -------------------- | ------------------ | ------------------------------------------------------------------------------------------------ | +| accordion | 计划 | 待实施时核验子部件、属性、事件、键盘行为与替代底座 | +| alert-dialog | 计划 | 待实施时核验子部件、属性、事件、键盘行为与替代底座 | +| autocomplete | 计划 | 待实施时核验子部件、属性、事件、键盘行为与替代底座 | +| avatar | 计划 | 待实施时核验子部件、属性、事件、键盘行为与替代底座 | +| avatar-group | 计划 | 待实施时核验子部件、属性、事件、键盘行为与替代底座 | +| badge | 计划 | 待实施时核验子部件、属性、事件、键盘行为与替代底座 | +| breadcrumbs | 计划 | 待实施时核验子部件、属性、事件、键盘行为与替代底座 | +| button | 验证中(最小实现) | 基线全部 7 种变体、尺寸、isIconOnly/isDisabled/isPending;PressEvent 与 Vue click 差异见文档 | +| button-group | 计划 | 待实施时核验子部件、属性、事件、键盘行为与替代底座 | +| card | 验证中(最小实现) | 4 种表面变体;Header/Title/Description/Content/Footer 已实现;以基线 CSS 为准 | +| checkbox | 计划 | 待实施时核验子部件、属性、事件、键盘行为与替代底座 | +| checkbox-group | 计划 | 待实施时核验子部件、属性、事件、键盘行为与替代底座 | +| chip | 计划 | 待实施时核验子部件、属性、事件、键盘行为与替代底座 | +| color-area | 计划 | 待实施时核验子部件、属性、事件、键盘行为与替代底座 | +| color-field | 计划 | 待实施时核验子部件、属性、事件、键盘行为与替代底座 | +| color-picker | 计划 | 待实施时核验子部件、属性、事件、键盘行为与替代底座 | +| color-slider | 计划 | 待实施时核验子部件、属性、事件、键盘行为与替代底座 | +| color-swatch | 计划 | 待实施时核验子部件、属性、事件、键盘行为与替代底座 | +| color-swatch-picker | 计划 | 待实施时核验子部件、属性、事件、键盘行为与替代底座 | +| close-button | 样式已移植 | Card 演示使用原生 button + closeButtonVariants + Tabler IconX;Vue CloseButton 组件尚未实现 | +| combo-box | 计划 | 待实施时核验子部件、属性、事件、键盘行为与替代底座 | +| date-field | 计划 | 待实施时核验子部件、属性、事件、键盘行为与替代底座 | +| date-picker | 计划 | 待实施时核验子部件、属性、事件、键盘行为与替代底座 | +| date-range-picker | 计划 | 待实施时核验子部件、属性、事件、键盘行为与替代底座 | +| drawer | 计划 | 待实施时核验子部件、属性、事件、键盘行为与替代底座 | +| progress-bar | 计划 | 待实施时核验子部件、属性、事件、键盘行为与替代底座 | +| progress-circle | 计划 | 待实施时核验子部件、属性、事件、键盘行为与替代底座 | +| time-field | 计划 | 待实施时核验子部件、属性、事件、键盘行为与替代底座 | +| disclosure | 计划 | 待实施时核验子部件、属性、事件、键盘行为与替代底座 | +| disclosure-group | 计划 | 待实施时核验子部件、属性、事件、键盘行为与替代底座 | +| error-message | 计划 | 待实施时核验子部件、属性、事件、键盘行为与替代底座 | +| kbd | 计划 | 待实施时核验子部件、属性、事件、键盘行为与替代底座 | +| link | 计划 | 待实施时核验子部件、属性、事件、键盘行为与替代底座 | +| popover | 计划 | 待实施时核验子部件、属性、事件、键盘行为与替代底座 | +| scroll-shadow | 计划 | 待实施时核验子部件、属性、事件、键盘行为与替代底座 | +| separator | 计划 | 待实施时核验子部件、属性、事件、键盘行为与替代底座 | +| skeleton | 计划 | 待实施时核验子部件、属性、事件、键盘行为与替代底座 | +| spinner | 计划 | 待实施时核验子部件、属性、事件、键盘行为与替代底座 | +| surface | 计划 | 待实施时核验子部件、属性、事件、键盘行为与替代底座 | +| toast | 计划 | 待实施时核验子部件、属性、事件、键盘行为与替代底座 | +| toggle-button | 计划 | 待实施时核验子部件、属性、事件、键盘行为与替代底座 | +| switch | 验证中(最小实现) | 根字段与组合部件、3 尺寸、ARIA 透传、原生/ARIA 校验、FormData/reset;PressEvent 不等价 | +| switch-group | 验证中(布局) | vertical/horizontal;不共享选择值,已移植基线 CSS | +| tabs | 计划 | 待实施时核验子部件、属性、事件、键盘行为与替代底座 | +| tag | 计划 | 待实施时核验子部件、属性、事件、键盘行为与替代底座 | +| tag-group | 计划 | 待实施时核验子部件、属性、事件、键盘行为与替代底座 | +| toggle-button-group | 计划 | 待实施时核验子部件、属性、事件、键盘行为与替代底座 | +| toolbar | 计划 | 待实施时核验子部件、属性、事件、键盘行为与替代底座 | +| tooltip | 计划 | 待实施时核验子部件、属性、事件、键盘行为与替代底座 | +| input | 验证中(最小实现) | primary/secondary、fullWidth、原生属性、v-model/defaultValue、表单 reset;TextField 上下文未实现 | +| input-group | 计划 | 待实施时核验子部件、属性、事件、键盘行为与替代底座 | +| textarea | 计划 | 待实施时核验子部件、属性、事件、键盘行为与替代底座 | +| textfield | 计划 | 待实施时核验子部件、属性、事件、键盘行为与替代底座 | +| search-field | 计划 | 待实施时核验子部件、属性、事件、键盘行为与替代底座 | +| typography | 计划 | 待实施时核验子部件、属性、事件、键盘行为与替代底座 | +| label | 验证中(原生标签) | for 关联、required/disabled/invalid;Switch 内采用 span 避免嵌套交互 | +| description | 验证中(描述关联) | 唯一 ID、多个描述、Switch aria-describedby 关联 | +| empty-state | 计划 | 待实施时核验子部件、属性、事件、键盘行为与替代底座 | +| field-error | 验证中(Switch) | 错误消息、ARIA 关联;完整 TextField 上下文未实现 | +| fieldset | 计划 | 待实施时核验子部件、属性、事件、键盘行为与替代底座 | +| form | 计划 | 待实施时核验子部件、属性、事件、键盘行为与替代底座 | +| header | 计划 | 待实施时核验子部件、属性、事件、键盘行为与替代底座 | +| radio | 计划 | 待实施时核验子部件、属性、事件、键盘行为与替代底座 | +| radio-group | 计划 | 待实施时核验子部件、属性、事件、键盘行为与替代底座 | +| input-otp | 计划 | 待实施时核验子部件、属性、事件、键盘行为与替代底座 | +| alert | 计划 | 待实施时核验子部件、属性、事件、键盘行为与替代底座 | +| list-box | 计划 | 待实施时核验子部件、属性、事件、键盘行为与替代底座 | +| list-box-item | 计划 | 待实施时核验子部件、属性、事件、键盘行为与替代底座 | +| list-box-section | 计划 | 待实施时核验子部件、属性、事件、键盘行为与替代底座 | +| dropdown | 计划 | 待实施时核验子部件、属性、事件、键盘行为与替代底座 | +| menu | 计划 | 待实施时核验子部件、属性、事件、键盘行为与替代底座 | +| menu-item | 计划 | 待实施时核验子部件、属性、事件、键盘行为与替代底座 | +| menu-section | 计划 | 待实施时核验子部件、属性、事件、键盘行为与替代底座 | +| modal | 计划 | 待实施时核验子部件、属性、事件、键盘行为与替代底座 | +| number-field | 计划 | 待实施时核验子部件、属性、事件、键盘行为与替代底座 | +| pagination | 计划 | 待实施时核验子部件、属性、事件、键盘行为与替代底座 | +| select | 计划 | 待实施时核验子部件、属性、事件、键盘行为与替代底座 | +| meter | 计划 | 待实施时核验子部件、属性、事件、键盘行为与替代底座 | +| slider | 计划 | 待实施时核验子部件、属性、事件、键盘行为与替代底座 | +| table | 计划 | 待实施时核验子部件、属性、事件、键盘行为与替代底座 | +| calendar | 计划 | 待实施时核验子部件、属性、事件、键盘行为与替代底座 | +| range-calendar | 计划 | 待实施时核验子部件、属性、事件、键盘行为与替代底座 | +| calendar-year-picker | 计划 | 待实施时核验子部件、属性、事件、键盘行为与替代底座 | + +## 公共导出差异 + +React Aria 专属 rac 导出与 React 图标类型不移植;Vue 版 ConfigProvider、图标方案与路由适配待实现。复杂组件实施前扩展对应条目,记录子部件、变体、属性、事件、键盘、依赖、测试和验收结果。 + +## 文档与视觉基线 + +默认入口改为组件文档。Button、Card、Input、Switch 具有独立页面、43 个共享源码的可运行示例、API 参考与主题文档。页面标题、说明和基础示例文案来自固定基线中文文档;Vue 事件、插槽和导出差异单独说明。 + +基线 CSS 与主题变量已移植并保留来源声明。文档布局按基线三栏结构重建;商业横幅、AI 助手、官方版本切换、主题生成器和完整组件导航尚未复刻。未完成原 React 站运行时截图与 Vue 站的自动逐像素对比。 + +## 已实现组件的文档清单复核 + +Button 14 / 14,Card 7 / 7,Input 7 / 7,Switch 15 / 15,基线预览名称与顺序均已对齐。没有用空壳补足数量;预览与复制代码共用 SFC。 + +Card 图片、头像、横向布局、表单与自定义样式已补齐;Input 的标签、类型、宽度与自定义样式已对齐。Switch 补齐图标、位置、分组、表单、状态插槽与自定义根容器。 + +框架适配差异:Avatar 使用 Reka 组合,表单与链接采用原生 HTML;图标使用 Tabler 官方 Vue 组件;演示不提供认证、支付等业务服务。完整 React Aria 事件模型、全库字段上下文及自动视觉回归仍不在本批完成范围。 + +## 文档体验范围 + +已实现正文/参数搜索、键盘选择与章节跳转、构建时示例代码高亮、复制反馈、相邻页面导航、滚动目录指示,以及窄屏可访问目录抽屉。文档与预览样式隔离,手机宽度保留搜索入口。完整原站全文检索、自动视觉基线和真实设备回归仍未建立。 + +## Button 示例完整性复核 + +与固定基线中文 Button 页面逐项核对:14 个预览均存在,顺序一致,缺失项为 0。补齐社交按钮、自定义变体、涟漪、自定义样式,并恢复图标、仅图标、全宽、禁用示例的组合内容。 + +修复 loading 别名误设原生 disabled 的问题:它与 isPending 都保留焦点并拦截重复激活;isDisabled/disabled 才设置原生禁用。固定加载示例只展示上传中的外观,动态上传示例 2 秒后恢复且可再次触发。asChild 将交互合并到自定义原生 button;涟漪采用 Vue/CSS 实现,图标采用 Tabler 官方 Vue 组件,这些框架适配差异已在文档说明。 + +未宣称 Button 的所有 React Aria 行为已完全复刻;PressEvent、路由链接等框架专属能力仍不等价。 diff --git a/docs/decisions/001-bootstrap.md b/docs/decisions/001-bootstrap.md new file mode 100644 index 0000000..56da67b --- /dev/null +++ b/docs/decisions/001-bootstrap.md @@ -0,0 +1,9 @@ +# 起步架构 + +采用 pnpm workspace、Vite 库模式、Vue 3.5+、TypeScript、Reka UI。组件与样式独立打包,依赖通过工作区包连接。演示使用源码别名以便热更新;文档消费 dist 导出,以暴露打包问题。 + +基础样式是带 hv- 前缀的原生 CSS,演示应用接入 Tailwind 4。此阶段不需要把简单 CSS 转换为 @apply,且消费者无需 Tailwind 即可使用初始组件。tailwind-variants 管理 Button 外观映射。 + +Button/Card/Input 使用原生元素;Switch 使用 Reka UI。原生 Input 的 controlled/uncontrolled 与 form reset 独立处理。复杂交互后续再补,不创建占位组件冒充完成。 + +暂未建立浏览器、视觉、Nuxt 水合和打包后独立安装验收;首轮验证仅涵盖单元行为、Node SSR、类型和构建。 diff --git a/docs/decisions/002-fidelity.md b/docs/decisions/002-fidelity.md new file mode 100644 index 0000000..f7fbf0f --- /dev/null +++ b/docs/decisions/002-fidelity.md @@ -0,0 +1,11 @@ +# 高一致性复刻 + +按用户 2026-10-20 的要求,早期近似配色与默认文档主题被替换。 + +采用固定基线 CSS、语义变量和变体映射,Tailwind 4 仅用于构建样式产物,消费者仍导入预编译 CSS。BEM 类名加 hv- 前缀,data-slot 保持部件语义。 + +文档使用自定义 VitePress Theme:顶部导航、左侧组件导航、正文、右侧目录、350px 示例区、代码区和参数表。内容沿用基线中文组件说明;默认入口变更为文档站。示例渲染和复制源码来自同一 SFC 文件,避免双份维护造成偏差。 + +Button 保留 isDisabled/isPending/isIconOnly;Switch 保留 isSelected/defaultSelected 等语义并支持 Vue v-model:checked。保留旧别名以兼容起步代码。Card 补齐全部结构部件,Input 补齐两个视觉变体。框架必需差异与尚未完成能力在组件文档和兼容矩阵列出。 + +尚未完成原 React 文档站的真实截图基线与自动像素差异测试,不能声称逐像素一致。没有迁移的组件仍按计划推进,不生成占位页。 diff --git a/docs/dev-server-verified.png b/docs/dev-server-verified.png new file mode 100644 index 0000000..3a2a4b6 Binary files /dev/null and b/docs/dev-server-verified.png differ diff --git a/docs/docs-experience.png b/docs/docs-experience.png new file mode 100644 index 0000000..bec3ab0 Binary files /dev/null and b/docs/docs-experience.png differ diff --git a/docs/input-aligned.png b/docs/input-aligned.png new file mode 100644 index 0000000..0da0d12 Binary files /dev/null and b/docs/input-aligned.png differ diff --git a/docs/input-dark-aligned.png b/docs/input-dark-aligned.png new file mode 100644 index 0000000..8ac7938 Binary files /dev/null and b/docs/input-dark-aligned.png differ diff --git a/docs/loading-highlight-verified.png b/docs/loading-highlight-verified.png new file mode 100644 index 0000000..b21cd58 Binary files /dev/null and b/docs/loading-highlight-verified.png differ diff --git a/docs/migration-handoff.md b/docs/migration-handoff.md new file mode 100644 index 0000000..635f960 --- /dev/null +++ b/docs/migration-handoff.md @@ -0,0 +1,162 @@ +# Vue 迁移任务拆分与复核约定 + +更新日期:2026-10-21。用于把有限范围的任务交给其他 AI,再由集成人复核。本文是任务计划,不代表已执行、已派发或已通过验收;实际状态以 [兼容矩阵](./compatibility.md) 为准。 + +## 共同基线 + +- 开始前读取项目根目录 [AGENTS.md](../AGENTS.md)、[上游记录](./upstream.md)、兼容矩阵及目标组件的局部指导。 +- 上游固定为 HeroUI 3.2.6、`ce90ea3ab49d58f6c428f71bfd6fe8ae2a87b960`。不能不说明就切换为官网最新设计。 +- React 参考仓库是 `../heroui/`;实现只能落在本 Vue 项目。新项目必须独立构建,不能运行 React 包装 Vue,也不能依赖相邻参考目录。 +- 本项目目前是 private 工作区,包名为 `@heroui-vue/components`、`@heroui-vue/styles`,不是官方 scope。Vue peer 范围为 `^3.5.0`;具体依赖以清单与锁文件为准。 +- 样式、布局、文案、变体、状态与公开能力对齐固定基线;框架机制改成 Vue 的模型、事件、具名导出及插槽。任何删减或差异都须记录。 + +## 当前起点 + +| 范围 | 当前事实 | 不应作出的推断 | +| ---------------------------------------------- | ---------------------------------------------------------------- | -------------------------------------------------- | +| Button / Card / Input / Switch | 已有实现和文档,基线演示分别为 14 / 7 / 7 / 15 个 | 不代表 React Aria 的全部行为已兼容 | +| SwitchGroup / Label / Description / FieldError | 已有部分组合能力;FieldError 当前仅接入 Switch | 不代表完整字段、表单与分组体系已完成 | +| CloseButton | CSS 与 closeButtonVariants 已移植,Card 演示使用原生 button 组合 | Vue CloseButton 组件尚未实现 | +| 主题与图标 | 已有默认浅深主题;演示与文档采用 Tabler 官方 Vue 图标 | 不能自行换品牌配色或自绘 SVG | +| 验证 | 当前有 34 项测试、SSR 冒烟及部分手动浏览器记录 | 尚无完整自动浏览器、视觉、独立安装和 Nuxt 水合验收 | + +这些数字是本次快照。接手时先检查代码和兼容矩阵,不用旧数字作为验收目标。 + +## 实施顺序与任务包 + +下表是批次,**不是让一个 AI 一次做完整个批次**。展示组件通常每次 1–3 个;表单或集合组件每次一个组件家族;复杂组件先做一个具体能力验证,再决定实现边界。 + +| 批次 | 建议拆分范围 | 前置依赖 / 关键交付 | 建议负责人 | +| ------------------- | -------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------- | ------------------------------ | +| 0:现有实现复核 | Button、Card、Input、Switch 的差异与回归 | 检查已有缺陷,不以当前页面直接充当视觉标准 | 集成人 | +| 1:展示与依赖补齐 | Surface;Link;Spinner;CloseButton;Avatar/AvatarGroup;Skeleton;Typography/Kbd;Badge/Chip/Alert;Separator/Header/Breadcrumbs/EmptyState | 各自独立组件、样式、全部基线演示;先核对现有源码再复用 | 可交给其他 AI,按小包分开 | +| 2:共享字段与表单 | TextField/Label/Description/FieldError/ErrorMessage;InputGroup/Textarea/SearchField;Fieldset/Form | 先定字段上下文、ID、错误与校验协议,再接具体控件;验证已有 Input/Switch 不回归 | 共享协议由单一负责人维护 | +| 3:选择与切换 | Checkbox/CheckboxGroup;Radio/RadioGroup;ToggleButton/ToggleButtonGroup;ButtonGroup;Switch 差异收敛 | 受控/非受控、组值、禁用继承、required、提交/reset、键盘 | 协议稳定后可按家族分配 | +| 4:展开与导航 | Accordion;Disclosure/DisclosureGroup;Tabs;Toolbar | 方向键、激活模式、多项展开、焦点与状态标记 | 可按家族分配 | +| 5:弹层与菜单 | Modal/AlertDialog;Popover/Tooltip;Dropdown/Menu/MenuItem/MenuSection;Drawer | 先统一焦点、嵌套、外部点击、滚动锁、定位及退出动画边界 | 弹层基础设施集中维护 | +| 6:集合与输入选择 | ListBox/Item/Section;Select;ComboBox/Autocomplete;Tag/TagGroup | 集合值、过滤、多选、清空、异步变化、IME 与空状态;不假设 Reka 同名组件自动覆盖全部能力 | 按依赖顺序交付单个家族 | +| 7:数值、范围与反馈 | NumberField;Slider;ProgressBar/ProgressCircle/Meter;Pagination;ScrollShadow | 精度、本地化、未知进度、拖动/滚动与真实布局 | 可分小包,布局相关用浏览器验收 | +| 8:日期与时间 | Calendar/RangeCalendar/CalendarYearPicker;DateField/TimeField;DatePicker/DateRangePicker | @internationalized/date,分段输入、范围、locale、时区、SSR | 能力验证后逐项实现 | +| 9:颜色 | ColorSwatch/ColorSwatchPicker;ColorField/ColorSlider/ColorArea;ColorPicker | 先定公共颜色模型及格式转换,再做多个部件的同步 | 颜色状态模型由单一负责人维护 | +| 10:独立复杂家族 | InputOTP;Toast;Table | OTP 粘贴/删除;Toast 队列/暂停/公告;Table 排序/选择/语义与键盘 | 一次一个家族 | +| 11:集成与发布准备 | 配置/方向/locale、SSR/Nuxt、独立安装、按需使用、主题入口、文档与包产物 | 与实际完成的组件矩阵对应;补建缺失的检查工具 | 集成人 | + +高风险验证不等到最后:在批次 1 开始时即可分别验证 Modal、Select、DatePicker、ColorPicker、Drawer、InputOTP 的底座缺口。验证任务必须交付可运行场景、失败用例和采用/补充/延后的结论,不能只交选型说明或空壳导出。 + +具体的下一项任务须从上游公共导出再次核对。上表用于安排依赖,不替代完整组件清单;ConfigProvider、路由适配等框架能力另外记录公共契约。 + +## 第一轮适合直接交出的任务 + +| 任务 ID | 范围 | 特别验收点 | +| ------- | -------------------- | --------------------------------------------------------------------------------------------------------------------- | +| M01 | Surface | 全部表面变体及嵌套层级;替换 Input 文档里现有原生表面适配后,不改变主题效果 | +| M02 | Link | 外部链接、图标、焦点与禁用语义;Vue Router 集成不强塞进基础包;替换 Card 演示中的原生链接适配 | +| M03 | Spinner | 尺寸、颜色、currentColor、减少动画与读屏语义;嵌入 Button 时保持 16px,不被普通 SVG 规则覆盖 | +| M04 | CloseButton | 复用已有专用 CSS/变体,不用 ghost Button 代替;默认 Tabler 图标的依赖边界先与集成人约定;替换 Card 的原生关闭按钮适配 | +| M05 | Avatar / AvatarGroup | 图像加载、失败 fallback、可访问名称、尺寸与分组重叠;替换 Card 内现有 Reka 组合,不破坏图片卡片 | +| M06 | Skeleton | 所有基线变体、浅深主题及 reduced-motion;演示数量和组合内容均核对 | + +建议先任选 2–3 个小包试运行交付与复核流程,再扩大分配。M04 不应为了方便默认图标,就私自给组件包增加整套图标依赖或自绘 SVG;允许先提出“调用方插槽 / 可选图标入口”等具体方案,由集成人统一落地。 + +## 多 AI 协作边界 + +- 每项任务写明所属文件、前置依赖、基线及验收范围。优先使用独立分支或隔离 checkout;不要让多个 AI 同时在同一 checkout 改同一组文件。 +- 不把整个仓库的“修复所有问题”作为单个任务,也不让一个任务顺手重写现有组件、主题、文档布局或构建链路。 +- `packages/vue/src/index.ts`、`types.ts`、样式入口/变体入口、文档导航、package.json、锁文件、共享字段/弹层协议、兼容矩阵是易冲突区域。分支内可提出必要改动,合并时由集成人逐项整合;同一 checkout 协作时由单一负责人编辑这些文件。 +- 新依赖先证明现有方案的具体缺口,说明版本、体积、状态与弹层互操作影响。不能为一个组件替换整套底座,或把文档图标包变成整库强制依赖。 +- 共享协议尚未确定时,只做不依赖该协议的工作。不要先假设多个不兼容的字段/颜色/焦点上下文,最后再让集成人猜测如何合并。 +- 任务开始时记录 Vue 项目的起始 commit;若工作区尚无可用提交或包含未提交工作,记录文件快照/差异范围,不把他人的修改混入交付,也不擅自 reset、清理或提交全部工作区。 +- 每项任务提供 `docs/migrations/<任务ID>.md` 交接报告;集成人在合并复核时同步兼容矩阵、来源和验证记录。其他 AI 不能仅凭自测就把组件标为“完整验收”。 + +## 可复制给其他 AI 的任务说明 + +复制后替换尖括号中的内容;这只是任务模板,不表示现在已派发。 + +```text +在独立 heroui-vue 项目迁移 <组件/家族>,任务 ID 为 。 +先读取根 AGENTS.md、docs/migration-handoff.md、docs/compatibility.md、docs/upstream.md。 +参考 HeroUI 3.2.6 / ce90ea3ab49d58f6c428f71bfd6fe8ae2a87b960。 +上游参考仓库是 ../heroui,禁止修改它,不通过 React 包装 Vue。 + +范围:<具体组件、子部件、必要适配及前置依赖>。 +负责文件:<组件目录、组件 CSS/变体、演示、文档、测试、交接报告>。 +共享文件改动方式:<分支内提供差异,由集成人合并 / 当前 checkout 由指定负责人修改>。 +不在本任务范围:<明确排除的组件、基础设施或功能>。 + +先核对上游实现、样式、API、全部中文示例的名称/次序/内容,形成迁移清单。 +保持样式、布局、文案、参数默认值、变体、主题及状态的高一致性。 +仅将框架机制适配为 Vue v-model、事件、插槽与独立命名导出;记录具体差异。 +所有演示使用同一份 Vue SFC 渲染、复制和高亮;图标用 @tabler/icons-vue,不自绘 SVG。 +禁止用近似控件、占位内容或未生效的 Tailwind 类名充数。 +新增依赖或共享协议变更先说明缺口与影响,不擅自替换全库架构。 + +交付组件/类型/导出、样式与主题状态、全部基线演示与 API 文档、适用的行为测试。 +检查实际 FormData/reset/焦点/键盘与浅深主题;布局和拖动不能只用 jsdom 验收。 +按改动运行真实存在的测试、类型和构建命令;没有执行的检查明确标为未执行。 +文档开发地址固定 127.0.0.1:5173,不擅自结束其他服务或换端口。 + +最后提交 docs/migrations/.md:变更范围、清单、命令结果、浏览器证据、已知差异、 +未验证项、依赖与来源、需要集成人处理的共享文件及复核步骤。 +不要声明全库完成,不以测试数量或截图相似代替完整验收。 +``` + +## 每项任务的交付报告 + +报告至少包括下列内容,集成人据此接手,避免依赖另一个聊天窗口的上下文: + +1. 起始版本与最终差异范围;修改文件与用途;共享文件的改动。 +2. 上游组件、CSS/变体、中文文档和演示的具体路径;原始许可及本次修改。 +3. API 对照:默认值、受控/非受控、部件/插槽、事件、暴露方法和框架差异。 +4. 示例对照:基线名称、顺序、实际内容、状态和缺失项。无法完成的项说明原因及替代验证。 +5. 实际执行的命令、结果和失败项;明确区分新增测试、原有测试及手动检查。 +6. 浏览器地址、视口、主题、状态、复现步骤与截图;容易误判的颜色/尺寸附计算样式。 +7. 尚未验证的 SSR 水合、读屏、触屏、RTL、独立安装等能力;已知缺口与后续依赖。 +8. 供集成人复核的最短路径,例如“打开哪个示例,按哪些键,应该提交什么值”。 + +## 我的复核顺序 + +我会独立重现结果,不直接采信交接报告中的“已完成”。 + +| 层次 | 检查方式 | 重点拦截的问题 | +| ----------------- | ---------------------------------------- | ------------------------------------------------------------------------- | +| 1:范围与来源 | 检查差异、上游路径、实际导出及依赖清单 | 改到 React 仓库、越界重构、混入他人修改、许可证遗漏、发布包出现 React | +| 2:公共契约 | 对照上游类型/文档及 Vue 类型检查 | 属性/变体/默认值遗漏,事件不透传,模型优先级不明,API 文档与代码不一致 | +| 3:交互与原生语义 | 运行适用测试并在浏览器操作 | 假禁用、只读仍响应键盘、重复触发、焦点丢失、表单值重复或 reset 错误 | +| 4:样式与主题 | 在固定数据/视口/主题下对比,并读计算样式 | Tailwind 类未生成、主题映射缺失、级联覆盖、近似替代、间距/图标/圆角不一致 | +| 5:文档与演示 | 逐个运行基线示例、展开和复制源码 | 数量对上但内容缺失、代码不同源、缺图标依赖、代码无高亮、静态状态假装交互 | +| 6:集成与产物 | 合并后重新检查构建、SSR 及相关消费场景 | 只在源码 alias 下能运行、dist/类型/样式入口损坏、依赖冲突和其他组件回归 | + +### 必查的具体项目 + +- 状态链是否完整:公共属性 → Vue 状态 → DOM/ARIA/data-* → CSS → 真实浏览器效果;尤其 pending 不等同于原生 disabled。 +- 受控与非受控是否都可用,父级拒绝更新时 DOM 是否正确;是否存在重复事件、修改传入值或动态 attrs 不更新。 +- name/value、选中/未选中、禁用、required、原生提交、reset、被取消的 reset,以及多实例唯一 ID 与标签/描述/错误关联。 +- 键盘、焦点可见与恢复、readonly、卸载清理;弹层额外检查 Esc、外部点击、滚动锁、嵌套、定位、退出动画和真实焦点限制。 +- 集合额外检查过滤/空状态/多选/清空/异步更新/IME;日期颜色额外检查值类型、格式、locale/时区或多个部件同步。 +- Tailwind 不只比模板 class:检查 accent/surface 等语义工具类真实生成、渐变和阴影非空、深色变量正确,预览通用规则没有覆盖 max-w-md 等显式类。 +- 不用 ghost Button 代替 CloseButton 等专用视觉;不把没有加载/失败处理的 img 当成完整 Avatar。 +- 桌面与窄屏、浅色与深色、主要变体和关键状态;图标库来源、尺寸和可访问名称;原站无法运行时明确限制,不声称逐像素一致。 +- 预览、复制、高亮必须来自同一 SFC。动态示例能开始、完成、恢复并重复执行;文档表格、导航、搜索及手机目录能实际使用。 +- 模块加载/SSR 不访问 window/document;ID、水合、Teleport 等检查与 SSR 冒烟分开。生产构建必须验证包导出的 dist,不只验证开发源码。 + +### 命令与证据边界 + +按改动范围运行当前真实存在的 `pnpm test`、`pnpm typecheck`、`pnpm build:docs`、`pnpm format`;影响消费验证页时增加 `pnpm build:playground`。合并后重跑受影响检查,不能用分支合并前的结果替代。 + +`test:browser`、`test:visual`、`test:package` 等目前尚未建立。需要时先建立可运行检查,或记录手动步骤与未验证范围,不能凭命令名称假称已通过。后续增加测试文件时检查 test:unit 的显式文件列表与默认测试入口是否都覆盖。 + +涉及布局、定位、滚动、拖动与焦点管理,jsdom 测试不能替代真实浏览器。反过来,只有截图也不能证明表单、键盘、受控状态与 SSR 正确。 + +## 复核结论与返工规则 + +| 结论 | 条件 | 后续处理 | +| ---------------- | ------------------------------------------------------ | ------------------------------------------------------- | +| 通过本任务范围 | 约定范围、行为、视觉、文档及适用检查均有证据,差异明确 | 集成并更新对应能力状态,不扩大为整组件/全库完整兼容 | +| 待修正 | 可复现的契约、视觉、交互、示例或集成问题 | 给出定位与复现步骤,修复后复核问题及受影响回归 | +| 暂缓,需确定方案 | 底座缺口或共享协议尚无可验证解决路径 | 写出失败场景、可选局部方案和影响,由用户/集成人决定范围 | + +核心状态错误、公共 API 缺失、明显视觉偏差、基线演示缺失、构建/SSR 失败均不能评为“通过”。预先写明且不影响本任务承诺的延后项,按范围单独记录;新发现的缺口不能事后静默改成“不在范围”。 + +每条问题给出严重性、文件与行号、触发条件、实际/预期、依据及修复后的验证方式。优先级顺序为:数据丢失/安全与无法使用的问题 → 公共契约、表单、焦点与关键状态 → 视觉、示例与文档偏差 → 可维护性建议。高一致性是明确要求,明显视觉或内容偏差同样可以阻止验收。 + +最后的复核报告列出:发现的问题、已复核通过的范围、执行的检查、未验证项和下一步。若没有发现问题,也明确审查边界,不能保证不存在任何缺陷。 diff --git a/docs/preview.png b/docs/preview.png new file mode 100644 index 0000000..7caf467 Binary files /dev/null and b/docs/preview.png differ diff --git a/docs/switch-aligned.png b/docs/switch-aligned.png new file mode 100644 index 0000000..3c00820 Binary files /dev/null and b/docs/switch-aligned.png differ diff --git a/docs/tabler-icons-verified.png b/docs/tabler-icons-verified.png new file mode 100644 index 0000000..dfb904e Binary files /dev/null and b/docs/tabler-icons-verified.png differ diff --git a/docs/upstream.md b/docs/upstream.md new file mode 100644 index 0000000..8ffdc2d --- /dev/null +++ b/docs/upstream.md @@ -0,0 +1,29 @@ +# 上游基线与移植来源 + +- 项目:https://github.com/heroui-inc/heroui +- 基线版本:3.2.6 +- 提交:ce90ea3ab49d58f6c428f71bfd6fe8ae2a87b960 +- 本次更新:2026-10-20 + +## 已移植 + +- packages/styles/components/{button,close-button,card,input,switch,switch-group,label,description}.css:只将组件类名加 hv- 前缀;Vue 状态适配集中在样式入口和组件层。 +- packages/styles/themes/default/variables.css、themes/shared/theme.css:主题变量、OKLCH 颜色、派生公式和圆角尺寸。 +- packages/styles/utilities、variants:焦点、禁用、减少动画等构建规则。 +- packages/styles/src/components/{button,card,input,switch}/*.styles.ts:变体与类名映射,增加命名空间。 +- apps/docs/content/docs/cn/react/components 下相应四个组件的标题、说明、示例顺序和 API 描述;React 特有部分转换为 Vue 用法。 +- apps/docs/src/demos/cn 下Button/Card/Input/Switch 全部基线示例的文案与布局;文档由新项目 SFC 实现。 +- apps/docs/public/fonts/Inter-{Regular,Medium,Bold}.ttf:文档字体资源。 + +## 来源声明 + +上游清单标注 MIT,但本地根 LICENSE 实际为 Apache-2.0(含 Copyright 2025 NextUI Inc.)。本项目保留原始全文于 third-party/HEROUI-LICENSE,样式包也携带 LICENSE;不能继续沿用早期文档中未经核对的 MIT 结论。移植文件保留来源并标注命名空间与 Vue 适配修改。 + +构建与运行不依赖相邻 React 仓库。完整源样式移植记录以本文件及源码顶部声明为准。 + +## 本批文档适配 + +- Card 的头像使用已安装 Reka Avatar 的加载和 fallback 机制;图片沿用上游 CDN URL,不复制媒体文件。Link 使用原生 a,关闭按钮使用原生 button、closeButtonVariants 与基线 CloseButton CSS 组合;这些依赖不标记为库的已实现组件。 +- Card 表单使用原生 form/label 与 Input 组合,提交仅展示本地反馈,不实现登录与密码找回服务。 +- SwitchGroup 的方向布局 CSS 来自同一基线。Switch 的 native/ARIA 校验、表单 checkbox、reset、属性与事件透传由 Vue 状态层实现;FieldError 暂仅接入 Switch。 +- 图标统一使用 @tabler/icons-vue(MIT)的官方组件,未移植 React 图标依赖;尚未完成自动逐像素对比。 diff --git a/docs/verification.md b/docs/verification.md new file mode 100644 index 0000000..09303f8 --- /dev/null +++ b/docs/verification.md @@ -0,0 +1,72 @@ +# 高一致性改造验证 + +验证日期:2026-10-20。 + +- 组件包、样式包 ESM 与类型声明构建通过。 +- Tailwind 4 编译移植的主题与组件 CSS,消费者无需配置 Tailwind。 +- Vue 类型检查通过;14 项行为与 SSR 测试通过。 +- 文档和独立验证应用生产构建通过,VitePress 检查无死链接。 +- 实际浏览器检查浅色/深色主题、按钮变体、开关切换、展开示例源码、页面导航。 +- 30 个示例直接渲染各自 SFC,复制代码读取同一个 SFC 的 raw 内容。 + +没有运行完整原 React 文档站,因此尚未完成原站与 Vue 站的自动逐像素对比;当前不能宣称布局、行为和文案已全面一致。移动端专项、读屏、Nuxt 水合与打包后独立安装尚未验证。 + +![组件文档预览](./preview.png) + +## 文档体验改进 + +- 搜索改为本地正文与章节索引,可搜索参数名;支持 Cmd/Ctrl+K、方向键、Enter 和 Esc。 +- 搜索摘要定位命中上下文,过滤 Markdown 表格分隔符;空结果提供下一步提示。 +- 示例代码采用构建时语法高亮,同时保留原始 SFC 的精确复制内容;复制反馈自动复位,失败展开代码以便手动复制。 +- 正文与预览样式隔离;收紧空白、统一按钮目标和表格滚动;960px 以下切换目录抽屉,保留搜索入口。 +- 真实浏览器检查了搜索与回车章节跳转,并通过 390px iframe 视口检查目录抽屉、导航后关闭和 Card 页面布局;这不等同于真实手机和触摸设备的完整验收。 +- 新增 5 项搜索行为测试;当前 19 项测试通过。类型检查与文档生产构建通过。 + +实际浏览器已验证示例代码复制成功,深色源码高亮与右侧阅读位置指示正常。 + +![文档体验预览](./docs-experience.png) + +## Button 缺失内容与加载行为修复 + +- 本地基线 Button 文档与 Vue 文档的预览名称逐项比较:14 / 14,顺序一致,缺失为 0。 +- 新增加载状态的完整演示测试,覆盖开始、阻止重复点击、保持焦点、2 秒恢复、再次触发及卸载清理。 +- 新增 loading 别名、asChild 状态与事件合并、涟漪键盘触发和动画清理测试;当前共 24 项测试通过。 +- 实际浏览器检查上传按钮进入“上传中…”并恢复“上传文件”,显示完成反馈,焦点仍留在原按钮。 +- 自定义变体示例在文档包内编译 Tailwind 工具类,库的预编译 CSS 消费方式不变。 + +![Button 示例修复预览](./button-examples.png) + +## 加载视觉与浅色代码高亮修复 + +- 修复 pending 缺失 aria-disabled 的状态适配:复用基线的 disabled-opacity(0.5),保留蓝色并降低透明度;不设置原生 disabled,保留焦点。 +- 加载或禁用时清理悬停、按下状态,避免恢复后残留。 +- 补齐 Shiki 浅色变量的 CSS 应用;浏览器检查源码 token 已呈现 6 种颜色。 +- 25 项测试通过,新增加载状态清理回归检查。 + +## Card / Input / Switch 按 Button 标准复核 + +- 固定提交预览清单与当前页面逐项比较:Card 7 / 7、Input 7 / 7、Switch 15 / 15,包含顺序检查。总计 43 个基线示例。 +- Card 恢复 9 张卡片的图片组合、横向樱桃卡片、头像、原生表单与定制 Pro 卡片;上游 CDN 图片在实际浏览器加载成功。 +- Input 恢复 3 个可见标签及唯一关联、受控域名反馈、自定义样式与原始尺寸。实际浏览器编辑后反馈 https://vue.example,页面无水平溢出。 +- Switch 修复组合模式的 ARIA 透传、唯一描述 ID、只读键盘行为、原生表单值和 reset;新增 native/aria 校验与 Switch FieldError、SwitchGroup 布局。浏览器确认无未命名开关,轨道尺寸为 32×16 / 40×20 / 48×24,纵向 column、横向 row,表单输出 notifications: on、newsletter: on。 +- 浅色与深色代码 token 配色正常;深色 Input 使用主题 field/foreground 变量。 +- 新增 9 项回归检查,共 34 项测试。类型检查、库和文档生产构建作为本批交付检查。真实浏览器检查为手动验证,尚未建立自动逐像素与设备矩阵;不能宣称完全兼容。 + +## 图标组件统一 + +- 文档与所有已实现组件示例统一采用 @tabler/icons-vue 3.49.0。搜索/设置/删除/品牌/开关/卡片与工具栏均使用官方组件。 +- 演示源码无内嵌 svg/path;加载图标保留独立 16px 插槽、减少动态效果支持;图标按钮保留可访问名称。 +- 文档安装页提供依赖命令与用法,组件发布包未新增图标依赖;按需导入,无在线图标服务。 + +## Card 关闭按钮样式修正 + +- 移除 Card 水平布局与图片组合中 3 处 ghost Button 代替 CloseButton 的做法。 +- 移植固定基线 CloseButton CSS 与变体映射,仅增加 hv- 前缀:24px 按钮、16px 图标、default/muted 主题色、悬停背景、按下 0.93 缩放、焦点与减少动态效果规则。 +- 演示使用原生 type=button 与 Tabler IconX,保留关闭操作的可访问名称。该修复只交付样式组合,不将 Vue CloseButton 公共组件标记为完成。 + +## Card Tailwind 示例的编译与层级修复 + +- 示例的静态 class 清单已逐项与固定提交的 card/custom-styles.tsx 核对一致;图标使用用户指定的 Tabler 替代。 +- 修复独立 utilities.css 缺少库 @theme inline 映射的问题。此前 accent/surface 等自定义颜色工具类没有生成,计算样式中渐变为 none、光晕与标签背景为透明。现在显式导入本库主题映射。 +- 把通用预览 max-width:100% 约束放入 components 层,恢复 utilities 层 max-w-md 的优先级;桌面计算宽度由 654px 恢复为 448px。 +- 实际浏览器分别验证浅色与深色:渐变、边框透明度、光晕、推荐标签背景及按钮 accent 阴影均存在,页面无水平溢出。未宣称自动逐像素对比通过。 diff --git a/package.json b/package.json new file mode 100644 index 0000000..6bc2851 --- /dev/null +++ b/package.json @@ -0,0 +1,38 @@ +{ + "name": "heroui-vue-workspace", + "private": true, + "version": "0.0.0", + "type": "module", + "packageManager": "pnpm@11.25.0", + "engines": { + "node": ">=22.12.0" + }, + "scripts": { + "dev": "pnpm build && pnpm --filter @heroui-vue/docs dev", + "dev:docs": "pnpm dev", + "build": "pnpm --filter @heroui-vue/styles build && pnpm --filter @heroui-vue/components build", + "build:playground": "pnpm build && pnpm --filter @heroui-vue/playground build", + "build:docs": "pnpm build && pnpm --filter @heroui-vue/docs build", + "typecheck": "vue-tsc --noEmit", + "test": "vitest run", + "test:unit": "vitest run tests/components.test.ts tests/composition.test.ts tests/docs-search.test.ts tests/button-demos.test.ts tests/aligned-components.test.ts", + "test:ssr": "vitest run tests/ssr.test.ts", + "format": "prettier --check .", + "format:fix": "prettier --write .", + "dev:playground": "pnpm build && pnpm --filter @heroui-vue/playground dev" + }, + "devDependencies": { + "@vitejs/plugin-vue": "^6.0.0", + "@vue/server-renderer": "^3.5.44", + "@vue/test-utils": "^2.4.6", + "jsdom": "^26.1.0", + "prettier": "^3.6.2", + "typescript": "~5.9.3", + "vite": "^7.1.0", + "vite-plugin-dts": "^4.5.4", + "vitest": "^3.2.4", + "vue": "^3.5.44", + "vue-tsc": "^3.1.0", + "@types/node": "^22.0.0" + } +} diff --git a/packages/styles/LICENSE b/packages/styles/LICENSE new file mode 100644 index 0000000..bf4dfe2 --- /dev/null +++ b/packages/styles/LICENSE @@ -0,0 +1,199 @@ + Apache License + Version 2.0, January 2004 + http://www.apache.org/licenses/ + + TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + + 1. Definitions. + + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. + + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. + + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. + + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. + + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. + + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. + + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). + + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. + + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to the Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." + + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by the Licensor and + subsequently incorporated within the Work. + + 2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. + + 3. Grant of Patent License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. + + 4. Redistribution. You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: + + (a) You must give any other recipients of the Work or + Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of + the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding any notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. + + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. + + 5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. + + 6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. + + 7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. + + 8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. + + 9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. + + END OF TERMS AND CONDITIONS + + APPENDIX: How to apply the Apache License to your work. + + To apply the Apache License to your work, attach the following + boilerplate notice, with the fields enclosed by brackets "[]" + replaced with your own identifying information. (Don't include + the brackets!) The text should be enclosed in the appropriate + comment syntax for the file format. Please also get an approval + from the project maintainers before using the Apache License. + + Copyright 2025 NextUI Inc. + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. diff --git a/packages/styles/components/button.css b/packages/styles/components/button.css new file mode 100644 index 0000000..422e594 --- /dev/null +++ b/packages/styles/components/button.css @@ -0,0 +1,161 @@ +/* Adapted from HeroUI v3, ce90ea3. Copyright 2025 NextUI Inc. + * See third-party/HEROUI-LICENSE. Modified: hv- class prefix; Vue state adapters. */ +/* Button component styles */ + +/* Base button styles */ +.hv-button { + @apply relative isolate inline-flex h-10 w-fit origin-center items-center justify-center gap-2 rounded-3xl px-4 text-sm font-medium whitespace-nowrap outline-none select-none no-highlight md:h-9; + + /** + * Transitions + * CRITICAL: motion-reduce must be AFTER transition for correct override specificity + */ + transition: + transform 250ms var(--ease-smooth), + background-color 100ms var(--ease-out), + box-shadow 100ms var(--ease-out); + @apply transform-gpu motion-reduce:transition-none; + + /* Cursor */ + cursor: var(--cursor-interactive); + + /* Default tokens (fallback behavior) */ + --button-bg: transparent; + --button-bg-hover: var(--button-bg); + --button-bg-pressed: var(--button-bg-hover); + --button-fg: currentColor; + + background-color: var(--button-bg); + color: var(--button-fg); + + /* Focus state */ + &:focus-visible:not([data-focused]), + &[data-focus-visible="true"] { + @apply status-focused; + } + + /* Disabled state */ + &:disabled, + &[aria-disabled="true"] { + @apply status-disabled; + } + + /* Pending state */ + &[data-pending="true"] { + @apply status-pending; + } + + /* Active / pressed */ + &:active, + &[data-pressed="true"] { + @apply will-change-transform; + background-color: var(--button-bg-pressed); + transform: scale(0.97); + } + + /* Hover */ + @media (hover: hover) { + &:hover, + &[data-hovered="true"] { + background-color: var(--button-bg-hover); + } + } + + /* SVG icon styling - exclude spinner and link-icon svgs */ + & svg:not([data-slot="spinner"] svg, [data-slot="link-icon"] svg) { + @apply pointer-events-none -mx-0.5 my-0.5 size-5 shrink-0 self-center sm:my-1 sm:size-4; + } +} + +/* Size variants */ +.hv-button--sm { + @apply h-9 px-3 md:h-8; + + & svg:not([data-slot="spinner"] svg, [data-slot="link-icon"] svg) { + @apply size-4; + } + + &:active, + &[data-pressed="true"] { + transform: scale(0.98); + } +} + +.hv-button--md { + /* No styles as this is the default size */ +} + +.hv-button--lg { + @apply h-11 text-base md:h-10; + + &:active, + &[data-pressed="true"] { + transform: scale(0.96); + } +} + +/* Color variants - only set custom property values */ +.hv-button--primary { + --button-bg: var(--accent); + --button-bg-hover: var(--accent-hover); + --button-bg-pressed: var(--accent-hover); + --button-fg: var(--accent-foreground); +} + +.hv-button--secondary { + --button-bg: var(--default); + --button-bg-hover: var(--default-hover); + --button-bg-pressed: var(--default-hover); + --button-fg: var(--accent-soft-foreground); +} + +.hv-button--tertiary { + --button-bg: var(--default); + --button-bg-hover: var(--default-hover); + --button-bg-pressed: var(--default-hover); +} + +.hv-button--ghost, +.hv-button--outline { + --button-bg: transparent; + --button-bg-hover: var(--default); + --button-bg-pressed: var(--default); + --button-fg: var(--default-foreground); +} + +.hv-button--outline { + @apply border border-border; + --button-bg-hover: color-mix(in srgb, var(--default) 60%, transparent); +} + +.hv-button--danger { + --button-bg: var(--danger); + --button-bg-hover: var(--danger-hover); + --button-bg-pressed: var(--danger-hover); + --button-fg: var(--danger-foreground); +} + +.hv-button--danger-soft { + --button-bg: var(--danger-soft); + --button-bg-hover: var(--danger-soft-hover); + --button-bg-pressed: var(--danger-soft-hover); + --button-fg: var(--danger-soft-foreground); +} + +/* Icon-only modifier */ +.hv-button--icon-only { + @apply w-10 p-0 md:w-9; +} + +.hv-button--icon-only.hv-button--sm { + @apply w-9 md:w-8; +} + +.hv-button--icon-only.hv-button--lg { + @apply w-11 md:w-10; +} + +/* Full width modifier */ +.hv-button--full-width { + @apply w-full; +} diff --git a/packages/styles/components/card.css b/packages/styles/components/card.css new file mode 100644 index 0000000..f4e8494 --- /dev/null +++ b/packages/styles/components/card.css @@ -0,0 +1,53 @@ +/* Adapted from HeroUI v3, ce90ea3. Copyright 2025 NextUI Inc. + * See third-party/HEROUI-LICENSE. Modified: hv- class prefix; Vue state adapters. */ +/* Card component styles */ + +/* Block */ +.hv-card { + @apply relative flex flex-col gap-3 overflow-visible p-4; + @apply shadow-surface; + border-radius: min(32px, var(--radius-3xl)); +} + +/* Element - header */ +.hv-card__header { + @apply flex flex-col; +} + +/* Element - title */ +.hv-card__title { + @apply text-sm leading-6 font-medium text-foreground; +} + +/* Element - description */ +.hv-card__description { + @apply text-sm leading-5 text-muted; +} + +/* Element - content */ +.hv-card__content { + @apply flex flex-1 flex-col gap-1; +} + +/* Element - footer */ +.hv-card__footer { + @apply flex flex-row items-center; +} + +/* Modifier - variant */ + +.hv-card--transparent { + @apply border-none bg-transparent shadow-none; +} + +.hv-card--default { + @apply bg-surface; +} + +.hv-card--secondary { + @apply bg-surface-secondary; +} + +.hv-card--tertiary { + @apply bg-surface-tertiary; +} diff --git a/packages/styles/components/close-button.css b/packages/styles/components/close-button.css new file mode 100644 index 0000000..8b7a037 --- /dev/null +++ b/packages/styles/components/close-button.css @@ -0,0 +1,67 @@ +/* Adapted from HeroUI v3, ce90ea3. Copyright 2025 NextUI Inc. + * See third-party/HEROUI-LICENSE. Modified: hv- class prefix. */ +/* Close Button component styles */ + +/* Base close button styles */ +.hv-close-button { + @apply relative isolate inline-flex h-6 w-6 shrink-0 origin-center items-center justify-center rounded-xl p-1 select-none no-highlight; + + /* Cursor */ + cursor: var(--cursor-interactive); + + /** + * Transitions + * CRITICAL: motion-reduce must be AFTER transition for correct override specificity + */ + transition: + transform 250ms var(--ease-out-quart), + color 150ms var(--ease-out), + background-color 100ms var(--ease-out), + box-shadow 150ms var(--ease-out); + @apply transform-gpu motion-reduce:transition-none; + + /* Focus visible state */ + &:focus-visible:not([data-focused]), + &[data-focus-visible="true"] { + @apply status-focused; + } + + /* Disabled state */ + &:disabled, + &[aria-disabled="true"] { + @apply status-disabled; + } + + /* Pending state */ + &[data-pending="true"] { + @apply status-pending; + } + + /* SVG icon styling*/ + & svg { + @apply pointer-events-none; + @apply size-4 shrink-0 self-center; + @apply -mx-0.5 my-0.5; + } +} + +/* Variants */ +.hv-close-button--default { + @apply bg-default text-muted; + + &:active, + &[data-pressed="true"] { + } + + @media (hover: hover) { + &:hover, + &[data-hovered="true"] { + @apply bg-default-hover; + } + } + + &:active, + &[data-pressed="true"] { + transform: scale(0.93); + } +} diff --git a/packages/styles/components/description.css b/packages/styles/components/description.css new file mode 100644 index 0000000..ae15cbc --- /dev/null +++ b/packages/styles/components/description.css @@ -0,0 +1,6 @@ +/* Adapted from HeroUI v3, ce90ea3. Copyright 2025 NextUI Inc. + * See third-party/HEROUI-LICENSE. Modified: hv- class prefix; Vue state adapters. */ +/* Base description styles */ +.hv-description { + @apply text-xs text-wrap wrap-break-word text-muted; +} diff --git a/packages/styles/components/input.css b/packages/styles/components/input.css new file mode 100644 index 0000000..a8d6504 --- /dev/null +++ b/packages/styles/components/input.css @@ -0,0 +1,88 @@ +/* Adapted from HeroUI v3, ce90ea3. Copyright 2025 NextUI Inc. + * See third-party/HEROUI-LICENSE. Modified: hv- class prefix; Vue state adapters. */ +.hv-input { + @apply rounded-field border bg-field px-3 py-2 text-base text-field-foreground shadow-field outline-none placeholder:text-field-placeholder sm:text-sm; + + border-width: var(--border-width-field); + border-color: var(--field-border); + + /** + * Transitions + * CRITICAL: motion-reduce must be AFTER transition for correct override specificity + */ + transition: + background-color 150ms var(--ease-smooth), + border-color 150ms var(--ease-smooth), + box-shadow 150ms var(--ease-out); + @apply motion-reduce:transition-none; + + @media (hover: hover) { + &:hover:not(:focus):not(:focus-visible), + &[data-hovered="true"]:not([data-focused="true"]):not( + [data-focus-visible="true"] + ) { + @apply bg-field-hover; + border-color: var(--field-border-hover); + } + } + + /* Focus state */ + &:focus, + &[data-focused="true"] { + @apply status-focused-field; + border-color: var(--field-border-focus); + background-color: var(--field-focus); + } + + /* Invalid state */ + &[data-invalid="true"] { + @apply status-invalid-field; + background-color: var(--field-focus); + } + + /* Disabled state */ + &:disabled, + &[data-disabled="true"], + &[aria-disabled="true"] { + @apply status-disabled; + } +} + +/* Variant property definitions */ +.hv-input--primary { + /* Default styles */ +} + +.hv-input--secondary { + @apply shadow-none; + background-color: var(--input-bg); + + --input-bg: var(--default); + --input-bg-hover: var(--default-hover); + --input-bg-focus: var(--default); + + @media (hover: hover) { + &:hover:not(:focus):not(:focus-visible), + &[data-hovered="true"]:not([data-focus-visible="true"]):not( + [data-focused="true"] + ) { + background-color: var(--input-bg-hover); + } + } + + &:focus, + &[data-focused="true"] { + background-color: var(--input-bg-focus); + } + + /* Invalid state */ + &[data-invalid="true"] { + @apply status-invalid-field; + background-color: var(--input-bg-focus); + } +} + +/* Full width modifier */ +.hv-input--full-width { + @apply w-full; +} diff --git a/packages/styles/components/label.css b/packages/styles/components/label.css new file mode 100644 index 0000000..40c0aba --- /dev/null +++ b/packages/styles/components/label.css @@ -0,0 +1,33 @@ +/* Adapted from HeroUI v3, ce90ea3. Copyright 2025 NextUI Inc. + * See third-party/HEROUI-LICENSE. Modified: hv- class prefix; Vue state adapters. */ +/* Base label styles */ +.hv-label { + /* Base styling */ + @apply text-sm font-medium text-foreground; +} + +/* + * Exclude group-level components (RadioGroup, CheckboxGroup) and radio/checkbox items + * to ensure asterisks only appear on atomic form field labels and group labels, + * not on individual options within those groups + */ +.hv-label--required, +[data-required="true"]:not([role="group"]):not([role="radiogroup"]):not( + [role="checkboxgroup"] + ) + > .hv-label, +[data-required="true"]:not([data-slot="radio"]):not([data-slot="checkbox"]) + > .hv-label { + @apply after:ms-0.5 after:text-danger after:content-['*']; +} + +.hv-label--disabled, +[data-disabled="true"] .hv-label { + @apply status-disabled; +} + +.hv-label--invalid, +[data-invalid="true"] .hv-label, +[aria-invalid="true"] .hv-label { + @apply text-danger; +} diff --git a/packages/styles/components/switch-group.css b/packages/styles/components/switch-group.css new file mode 100644 index 0000000..81c321a --- /dev/null +++ b/packages/styles/components/switch-group.css @@ -0,0 +1,18 @@ +/* Adapted from HeroUI ce90ea3. Copyright 2025 NextUI Inc. See third-party/HEROUI-LICENSE. */ +/* Switch Group styles */ +.hv-switch-group { + @apply flex flex-col gap-6; +} + +.hv-switch-group__items { + @apply flex gap-4; +} + +/* Orientation modifiers */ +.hv-switch-group--horizontal .hv-switch-group__items { + @apply flex-row; +} + +.hv-switch-group--vertical .hv-switch-group__items { + @apply flex-col; +} diff --git a/packages/styles/components/switch.css b/packages/styles/components/switch.css new file mode 100644 index 0000000..2e16340 --- /dev/null +++ b/packages/styles/components/switch.css @@ -0,0 +1,249 @@ +/* Adapted from HeroUI v3, ce90ea3. Copyright 2025 NextUI Inc. + * See third-party/HEROUI-LICENSE. Modified: hv- class prefix; Vue state adapters. */ +/* Switch base styles */ +.hv-switch { + @apply flex flex-col items-start gap-1 no-highlight; + + /* Cursor */ + cursor: var(--cursor-interactive); + + /* Default tokens for switch control states */ + --switch-control-bg: var(--default); + --switch-control-bg-hover: color-mix( + in oklab, + var(--switch-control-bg), + transparent 20% + ); + --switch-control-bg-pressed: var(--switch-control-bg-hover); + --switch-control-bg-checked: var(--accent); + --switch-control-bg-checked-hover: var(--accent-hover); + + /* Disabled state */ + &[data-disabled="true"] { + @apply status-disabled; + + [data-slot="description"], + [data-slot="field-error"] { + @apply status-disabled; + } + + .hv-switch__thumb { + @apply bg-default-foreground/20; + } + } + + /* Field-level help text below the control + label row */ + & > [data-slot="description"] { + @apply w-full min-w-0 ps-[calc(2.5rem+0.75rem)]; + } + + & > [data-slot="field-error"] { + @apply w-full min-w-0 ps-[calc(2.5rem+0.75rem)] text-xs text-muted; + } + + &.hv-switch--sm > [data-slot="description"] { + @apply ps-[calc(2rem+0.75rem)]; + } + + &.hv-switch--sm > [data-slot="field-error"] { + @apply ps-[calc(2rem+0.75rem)]; + } + + &.hv-switch--lg > [data-slot="description"] { + @apply ps-[calc(3rem+0.75rem)]; + } + + &.hv-switch--lg > [data-slot="field-error"] { + @apply ps-[calc(3rem+0.75rem)]; + } + + /* Disabled + Selected state */ + &:disabled[aria-checked="true"], + &:disabled[data-selected="true"], + &[data-disabled="true"][aria-checked="true"], + &[data-disabled="true"][data-selected="true"], + &[aria-disabled="true"][aria-checked="true"], + &[aria-disabled="true"][data-selected="true"] { + .hv-switch__thumb { + opacity: 0.4; + } + } +} + +/* Size variants - default is medium */ +.hv-switch--sm { + /* Small size modifier */ +} + +.hv-switch--md { + /* Medium size - no styles as this is the default */ +} + +.hv-switch--lg { + /* Large size modifier */ +} + +/* Switch control (track) */ +.hv-switch__control { + /* Default size (medium) */ + @apply relative flex shrink-0 items-center overflow-hidden rounded-xl; + height: 1.25rem; /* 20px on desktop (14px base), 20px on mobile (16px base) - scales with font-size */ + width: 2.5rem; /* 35px on desktop, 40px on mobile - scales with font-size */ + + background-color: var(--switch-control-bg); + + /** + * Transitions + * CRITICAL: motion-reduce must be AFTER transition for correct override specificity + */ + transition: + background-color 250ms var(--ease-smooth), + box-shadow 150ms var(--ease-out); + @apply motion-reduce:transition-none; + + /* Focus states */ + .hv-switch:focus-visible &, + .hv-switch:has([data-slot="switch-content"][data-focus-visible="true"]) &, + .hv-switch [data-slot="switch-content"][data-focus-visible="true"] & { + @apply status-focused; + } + + /* Hover states */ + .hv-switch:hover &, + .hv-switch:has([data-slot="switch-content"][data-hovered="true"]) &, + .hv-switch [data-slot="switch-content"][data-hovered="true"] & { + background-color: var(--switch-control-bg-hover); + } + + /* Pressed states */ + .hv-switch:active &, + .hv-switch:has([data-slot="switch-content"][data-pressed="true"]) &, + .hv-switch [data-slot="switch-content"][data-pressed="true"] & { + background-color: var(--switch-control-bg-pressed); + @apply motion-reduce:transform-none; + } + + /* Checked states */ + .hv-switch[aria-checked="true"] &, + .hv-switch[data-selected="true"] & { + background-color: var(--switch-control-bg-checked); + } + + /* Checked + Hover states */ + .hv-switch[aria-checked="true"]:hover &, + .hv-switch[data-selected="true"]:hover &, + .hv-switch[aria-checked="true"][data-hovered="true"] &, + .hv-switch[data-selected="true"][data-hovered="true"] &, + .hv-switch:has( + [data-slot="switch-content"][data-hovered="true"] + )[data-selected="true"] + & { + background-color: var(--switch-control-bg-checked-hover); + } + + /* Checked + Pressed states */ + .hv-switch[aria-checked="true"]:active &, + .hv-switch[data-selected="true"]:active &, + .hv-switch[aria-checked="true"][data-pressed="true"] &, + .hv-switch[data-selected="true"][data-pressed="true"] &, + .hv-switch:has( + [data-slot="switch-content"][data-pressed="true"] + )[data-selected="true"] + & { + background-color: var(--switch-control-bg-checked-hover); + } +} + +/* Switch content — the clickable label (control + label text) */ +.hv-switch__content { + @apply relative inline-flex cursor-[inherit] items-center gap-3 text-sm font-medium text-foreground outline-none select-none no-highlight; +} + +/* Size-specific control dimensions */ +.hv-switch--sm .hv-switch__control { + @apply rounded-lg; + height: 1rem; /* ~14px on desktop, ~16px on mobile */ + width: 2rem; /* ~32px on desktop, ~36px on mobile */ +} + +.hv-switch--md .hv-switch__control { + /* No styles as this is the default size */ +} + +.hv-switch--lg .hv-switch__control { + height: 1.5rem; /* ~21px on desktop, ~24px on mobile */ + width: 3rem; /* ~48px on desktop, ~56px on mobile */ +} + +/* Switch thumb */ +.hv-switch__thumb { + /* Default size (medium) with margin-based positioning */ + @apply ms-0.5 flex origin-center rounded-lg bg-white text-black shadow-field; + height: 1rem; /* ~14px on desktop, ~16px on mobile */ + width: 1.375rem; /* ~19px on desktop, ~22px on mobile */ + + /** + * Transitions + * CRITICAL: motion-reduce must be AFTER transition for correct override specificity + */ + transition: + margin 300ms var(--ease-out-fluid), + background-color 200ms var(--ease-out); + @apply motion-reduce:transition-none; + + /* Selected/checked state - use margin instead of translate */ + .hv-switch[aria-checked="true"] &, + .hv-switch[data-selected="true"] & { + @apply ms-[calc(100%-1.5rem)] bg-accent-foreground text-accent; + box-shadow: + 0px 0px 5px 0px rgb(0 0 0 / 0.02), + 0px 2px 10px 0px rgb(0 0 0 / 0.06), + 0px 0px 1px 0px rgb(0 0 0 / 0.3); + } + + .hv-switch:active &, + .hv-switch[data-pressed="true"] & { + } +} + +/* Size-specific thumb dimensions */ +.hv-switch--sm .hv-switch__thumb { + @apply rounded-md; + height: 0.75rem; /* ~10.5px on desktop, ~12px on mobile */ + width: 1.03125rem; /* ~14.4px on desktop, ~16.5px on mobile - maintains 1.375:1 ratio */ + + /* Small selected state positioning */ + .hv-switch[aria-checked="true"] &, + .hv-switch[data-selected="true"] & { + @apply ms-[calc(100%-1.15625rem)]; + } +} + +.hv-switch--lg .hv-switch__thumb { + @apply rounded-xl; + height: 1.25rem; /* ~17.5px on desktop, ~20px on mobile */ + width: 1.71875rem; /* ~24px on desktop, ~27.5px on mobile - maintains 1.375:1 ratio */ + + /* Large selected state positioning */ + .hv-switch[aria-checked="true"] &, + .hv-switch[data-selected="true"] & { + @apply ms-[calc(100%-1.84375rem)]; + } +} + +/* Switch thumb content container */ +.hv-switch__thumb > * { + @apply flex size-full items-center justify-center; +} + +.hv-switch [data-slot="label"] { + @apply select-none; +} + +.hv-switch__content [data-slot="label"] { + cursor: var(--cursor-interactive); +} + +.hv-switch [data-slot="description"] { + @apply cursor-default select-none; +} diff --git a/packages/styles/index.css b/packages/styles/index.css new file mode 100644 index 0000000..0ecfbc4 --- /dev/null +++ b/packages/styles/index.css @@ -0,0 +1,64 @@ +@layer theme, base, components, utilities; +@import "tailwindcss/theme.css" layer(theme); +@import "tailwindcss/preflight.css" layer(base); +@import "./themes/shared/theme.css"; +@import "./themes/default/variables.css"; +@import "./utilities/index.css"; +@import "./variants/index.css"; +@import "./components/button.css" layer(components); +@import "./components/close-button.css" layer(components); +@import "./components/card.css" layer(components); +@import "./components/input.css" layer(components); +@import "./components/switch.css" layer(components); +@import "./components/switch-group.css" layer(components); +@import "./components/label.css" layer(components); +@import "./components/description.css" layer(components); +/* The Vue Switch uses Reka's native button for its clickable content. */ +@layer components { + .hv-switch:has(.hv-switch__content:focus-visible) .hv-switch__control { + @apply status-focused; + } + .hv-switch__content { + border: 0; + background: transparent; + padding: 0; + font: inherit; + } + .hv-spinner { + width: 1em; + height: 1em; + border: 2px solid currentColor; + border-right-color: transparent; + border-radius: 50%; + animation: hv-spin 0.75s linear infinite; + } + @keyframes hv-spin { + to { + transform: rotate(360deg); + } + } + @media (prefers-reduced-motion: reduce) { + .hv-spinner { + animation: none; + } + } +} + +@layer components { + .hv-switch__input { + position: absolute; + width: 1px; + height: 1px; + margin: -1px; + padding: 0; + border: 0; + clip-path: inset(50%); + overflow: hidden; + white-space: nowrap; + } + .hv-field-error, + .hv-switch > .hv-field-error { + color: var(--danger); + font-size: var(--text-xs); + } +} diff --git a/packages/styles/package.json b/packages/styles/package.json new file mode 100644 index 0000000..5272761 --- /dev/null +++ b/packages/styles/package.json @@ -0,0 +1,30 @@ +{ + "name": "@heroui-vue/styles", + "version": "0.0.1", + "private": true, + "type": "module", + "files": [ + "dist", + "LICENSE" + ], + "exports": { + ".": { + "types": "./dist/index.d.ts", + "import": "./dist/index.js" + }, + "./css": "./dist/styles.css" + }, + "sideEffects": [ + "**/*.css" + ], + "scripts": { + "build": "vite build" + }, + "dependencies": { + "tailwind-variants": "^3.1.0" + }, + "devDependencies": { + "@tailwindcss/vite": "^4.1.0", + "tailwindcss": "^4.1.0" + } +} diff --git a/packages/styles/src/index.ts b/packages/styles/src/index.ts new file mode 100644 index 0000000..63d24e2 --- /dev/null +++ b/packages/styles/src/index.ts @@ -0,0 +1,129 @@ +/* Adapted from HeroUI v3, ce90ea3. Copyright 2025 NextUI Inc. + * See third-party/HEROUI-LICENSE. Modified: hv- class prefix; Vue state adapters. */ + +import { tv, type VariantProps } from "tailwind-variants"; + +export const buttonVariants = tv({ + base: "hv-button", + defaultVariants: { + fullWidth: false, + isIconOnly: false, + size: "md", + variant: "primary", + }, + variants: { + fullWidth: { + false: "", + true: "hv-button--full-width", + }, + isIconOnly: { + true: "hv-button--icon-only", + }, + size: { + lg: "hv-button--lg", + md: "hv-button--md", + sm: "hv-button--sm", + }, + variant: { + danger: "hv-button--danger", + "danger-soft": "hv-button--danger-soft", + ghost: "hv-button--ghost", + outline: "hv-button--outline", + primary: "hv-button--primary", + secondary: "hv-button--secondary", + tertiary: "hv-button--tertiary", + }, + }, +}); + +export type ButtonVariants = VariantProps; + +const cardVariants = tv({ + defaultVariants: { + variant: "default", + }, + slots: { + base: "hv-card", + content: "hv-card__content", + description: "hv-card__description", + footer: "hv-card__footer", + header: "hv-card__header", + title: "hv-card__title", + }, + variants: { + variant: { + default: { + base: "hv-card--default", + }, + secondary: { + base: "hv-card--secondary", + }, + tertiary: { + base: "hv-card--tertiary", + }, + transparent: { + base: "hv-card--transparent", + }, + }, + }, +}); + +export { cardVariants }; +export type CardVariants = VariantProps; + +export const inputVariants = tv({ + base: "hv-input", + defaultVariants: { + fullWidth: false, + variant: "primary", + }, + variants: { + fullWidth: { + false: "", + true: "hv-input--full-width", + }, + variant: { + primary: "hv-input--primary", + secondary: "hv-input--secondary", + }, + }, +}); + +export type InputVariants = VariantProps; + +export const switchVariants = tv({ + defaultVariants: { + size: "md", + }, + slots: { + base: "hv-switch", + content: "hv-switch__content", + control: "hv-switch__control", + icon: "hv-switch__icon", + thumb: "hv-switch__thumb", + }, + variants: { + size: { + lg: { + base: "hv-switch--lg", + }, + md: { + base: "hv-switch--md", + }, + sm: { + base: "hv-switch--sm", + }, + }, + }, +}); + +export type SwitchVariants = VariantProps; + +export { tv, cn, type VariantProps } from "tailwind-variants"; + +export const closeButtonVariants = tv({ + base: "hv-close-button", + defaultVariants: { variant: "default" }, + variants: { variant: { default: "hv-close-button--default" } }, +}); +export type CloseButtonVariants = VariantProps; diff --git a/packages/styles/styles-entry.ts b/packages/styles/styles-entry.ts new file mode 100644 index 0000000..3a29aed --- /dev/null +++ b/packages/styles/styles-entry.ts @@ -0,0 +1 @@ +import "./index.css"; diff --git a/packages/styles/themes/default/variables.css b/packages/styles/themes/default/variables.css new file mode 100644 index 0000000..9fa74f5 --- /dev/null +++ b/packages/styles/themes/default/variables.css @@ -0,0 +1,493 @@ +/* Adapted from HeroUI v3, ce90ea3. Copyright 2025 NextUI Inc. + * See third-party/HEROUI-LICENSE. Modified: hv- class prefix; Vue state adapters. */ +@layer base { + /* HeroUI Default Theme */ + + /* + * == Common Variables == + * Identical in every theme, so they are also declared on `:host`: `:root` matches + * nothing inside a shadow tree, and the theme blocks below never re-declare these. + */ + :root, + :host { + /* Primitive Colors (Do not change between light and dark) */ + --white: oklch(100% 0 0); + --black: oklch(0% 0 0); + --snow: oklch(0.9911 0 0); + --eclipse: oklch(0.2103 0.0059 285.89); + + /* Spacing scale */ + --spacing: 0.25rem; + + /* Border */ + --border-width: 1px; + --field-border-width: 0px; + --disabled-opacity: 0.5; + + /* Ring offset - Used for focus ring */ + --ring-offset-width: 2px; + + /* Cursor */ + --cursor-interactive: pointer; + --cursor-disabled: not-allowed; + + /* Radius */ + --radius: 0.5rem; + --field-radius: calc(var(--radius) * 1.5); + + /* Accent and status hues (shared with the dark theme) */ + --accent: oklch(0.6204 0.195 253.83); + --accent-foreground: var(--snow); + + --success: oklch(0.7329 0.1935 150.81); + --success-foreground: var(--eclipse); + + /* no border by default on form fields */ + --field-border: transparent; + + /* Skeleton Default Global Animation */ + --skeleton-animation: shimmer; /* shimmer, pulse, none */ + + /* Tooltip Default Delays */ + --tooltip-delay: 1500ms; + --tooltip-close-delay: 500ms; + } + + :root, + .light, + .default, + [data-theme="light"], + [data-theme="default"], + :host(.light), + :host(.default), + :host([data-theme="light"]), + :host([data-theme="default"]) { + color-scheme: light; + + /* == Light Theme Variables == */ + + /* Base Colors */ + --background: oklch(0.9702 0 0); + --foreground: var(--eclipse); + + /* Surface: Used for non-overlay components (cards, accordions, disclosure groups) */ + --surface: var(--white); + --surface-foreground: var(--foreground); + + --surface-secondary: oklch(0.9524 0.0013 286.37); + --surface-secondary-foreground: var(--foreground); + + --surface-tertiary: oklch(0.9373 0.0013 286.37); + --surface-tertiary-foreground: var(--foreground); + + /* Overlay: Used for floating/overlay components (tooltips, popovers, modals, menus) */ + --overlay: var(--white); + --overlay-foreground: var(--foreground); + + --muted: oklch(0.5517 0.0138 285.94); + + --scrollbar: var(--scrollbar-thumb); + --scrollbar-thumb: color-mix(in oklch, var(--foreground) 15%, transparent); + --scrollbar-track: transparent; + --scrollbar-gutter: auto; + --scrollbar-width: thin; + --scrollbar-color: var(--scrollbar-thumb) var(--scrollbar-track); + + --default: oklch(94% 0.001 286.375); + --default-foreground: var(--eclipse); + + /* Form Fields */ + --field-background: var(--white); + --field-foreground: oklch(0.2103 0.0059 285.89); + --field-placeholder: var(--muted); + + /* Status Colors */ + --warning: oklch(0.7819 0.1585 72.33); + --warning-foreground: var(--eclipse); + + --danger: oklch(0.6532 0.2328 25.74); + --danger-foreground: var(--snow); + + /* Component Colors */ + --segment: var(--white); + --segment-foreground: var(--eclipse); + + /* Misc Colors */ + --border: oklch(90% 0.004 286.32); + --separator: oklch(92% 0.004 286.32); + --focus: var(--accent); + --link: var(--foreground); + + /* Backdrop */ + --backdrop: rgba(0, 0, 0, 0.5); + + /* Calculated Colors */ + --surface-hover: color-mix( + in oklab, + var(--surface) 92%, + var(--surface-foreground) 8% + ); + + --background-secondary: color-mix( + in oklab, + var(--background) 96%, + var(--foreground) 4% + ); + --background-tertiary: color-mix( + in oklab, + var(--background) 92%, + var(--foreground) 8% + ); + --background-inverse: var(--foreground); + + --default-hover: color-mix( + in oklab, + var(--default) 96%, + var(--default-foreground) 4% + ); + --accent-hover: color-mix( + in oklab, + var(--accent) 90%, + var(--accent-foreground) 10% + ); + --success-hover: color-mix( + in oklab, + var(--success) 90%, + var(--success-foreground) 10% + ); + --warning-hover: color-mix( + in oklab, + var(--warning) 90%, + var(--warning-foreground) 10% + ); + --danger-hover: color-mix( + in oklab, + var(--danger) 90%, + var(--danger-foreground) 10% + ); + + --field-hover: color-mix( + in oklab, + var(--field-background, var(--default)) 90%, + var(--field-foreground, var(--foreground)) 2% + ); + --field-focus: var(--field-background, var(--default)); + --field-border-hover: color-mix( + in oklab, + var(--field-border, var(--border)) 88%, + var(--field-foreground, var(--foreground)) 10% + ); + --field-border-focus: color-mix( + in oklab, + var(--field-border, var(--border)) 74%, + var(--field-foreground, var(--foreground)) 22% + ); + + --default-soft: color-mix(in oklab, var(--default) 50%, transparent); + --default-soft-foreground: var(--default-foreground); + --default-soft-hover: color-mix(in oklab, var(--default) 60%, transparent); + + --accent-soft: color-mix(in oklab, var(--accent) 15%, transparent); + --accent-soft-foreground: color-mix( + in oklab, + var(--accent) 70%, + var(--foreground) 30% + ); + --accent-soft-hover: color-mix(in oklab, var(--accent) 20%, transparent); + + --danger-soft: color-mix(in oklab, var(--danger) 15%, transparent); + --danger-soft-foreground: color-mix( + in oklab, + var(--danger) 70%, + var(--foreground) 40% + ); + --danger-soft-hover: color-mix(in oklab, var(--danger) 20%, transparent); + + --warning-soft: color-mix(in oklab, var(--warning) 15%, transparent); + --warning-soft-foreground: color-mix( + in oklab, + var(--warning) 80%, + var(--foreground) 70% + ); + --warning-soft-hover: color-mix(in oklab, var(--warning) 20%, transparent); + + --success-soft: color-mix(in oklab, var(--success) 15%, transparent); + --success-soft-foreground: color-mix( + in oklab, + var(--success) 80%, + var(--foreground) 60% + ); + --success-soft-hover: color-mix(in oklab, var(--success) 20%, transparent); + + --separator-secondary: color-mix( + in oklab, + var(--surface) 85%, + var(--surface-foreground) 15% + ); + --separator-tertiary: color-mix( + in oklab, + var(--surface) 81%, + var(--surface-foreground) 19% + ); + + --border-secondary: color-mix( + in oklab, + var(--surface) 78%, + var(--surface-foreground) 22% + ); + --border-tertiary: color-mix( + in oklab, + var(--surface) 66%, + var(--surface-foreground) 34% + ); + + /* Shadows */ + /* --surface-shadow: 0 0px 0px 0 rgba(24, 24, 27, 0.03), 0 2px 10px 0 rgba(24, 24, 27, 0.08); */ + --surface-shadow: + 0 2px 4px 0 rgba(0, 0, 0, 0.04), 0 1px 2px 0 rgba(0, 0, 0, 0.06), + 0 0 1px 0 rgba(0, 0, 0, 0.06); + /* Overlay shadow */ + --overlay-shadow: + 0 2px 8px 0 rgba(0, 0, 0, 0.06), 0 -6px 12px 0 rgba(0, 0, 0, 0.03), + 0 14px 28px 0 rgba(0, 0, 0, 0.08); + --field-shadow: + 0 2px 4px 0 rgba(0, 0, 0, 0.04), 0 1px 2px 0 rgba(0, 0, 0, 0.06), + 0 0 1px 0 rgba(0, 0, 0, 0.06); + } + + .dark, + [data-theme="dark"], + :host(.dark), + :host([data-theme="dark"]) { + color-scheme: dark; + /* == Dark Theme Variables == */ + + /* Base Colors */ + --background: oklch(12% 0.005 285.823); + --foreground: var(--snow); + + /* Surface: Used for non-overlay components (cards, accordions, disclosure groups) */ + --surface: oklch(0.2103 0.0059 285.89); + --surface-foreground: var(--foreground); + + --surface-secondary: oklch(0.257 0.0037 286.14); + --surface-secondary-foreground: var(--foreground); + + --surface-tertiary: oklch(0.2721 0.0024 247.91); + --surface-tertiary-foreground: var(--foreground); + + /* Overlay: Used for floating/overlay components (tooltips, popovers, modals, menus) - lighter for contrast */ + --overlay: oklch(0.2103 0.0059 285.89); + --overlay-foreground: var(--foreground); + + --muted: oklch(70.5% 0.015 286.067); + + --scrollbar: var(--scrollbar-thumb); + --scrollbar-thumb: color-mix(in oklch, var(--foreground) 15%, transparent); + --scrollbar-track: transparent; + --scrollbar-gutter: auto; + --scrollbar-width: thin; + --scrollbar-color: var(--scrollbar-thumb) var(--scrollbar-track); + + --default: oklch(27.4% 0.006 286.033); + --default-foreground: var(--snow); + + /* Form Fields */ + --field-background: oklch(0.2103 0.0059 285.89); + --field-foreground: var(--foreground); + --field-placeholder: var(--muted); + + /* Status Colors */ + --warning: oklch(0.8203 0.1388 76.34); + --warning-foreground: var(--eclipse); + + --danger: oklch(0.594 0.1967 24.63); + --danger-foreground: var(--snow); + + /* Component Colors */ + --segment: oklch(0.3964 0.01 285.93); + --segment-foreground: var(--foreground); + + /* Misc Colors */ + --border: oklch(28% 0.006 286.033); + --separator: oklch(25% 0.006 286.033); + --focus: var(--accent); + --link: var(--foreground); + + /* Backdrop */ + --backdrop: rgba(0, 0, 0, 0.6); + + /* Shadows */ + --surface-shadow: 0 0 0 0 transparent inset; /* No shadow on dark mode */ + --overlay-shadow: 0 0 1px 0 rgba(255, 255, 255, 0.3) inset; + --field-shadow: 0 0 0 0 transparent inset; /* Transparent shadow to allow ring utilities to work */ + + /* Calculated Colors */ + --surface-hover: color-mix( + in oklab, + var(--surface) 92%, + var(--surface-foreground) 8% + ); + + --background-secondary: color-mix( + in oklab, + var(--background) 96%, + var(--foreground) 4% + ); + --background-tertiary: color-mix( + in oklab, + var(--background) 92%, + var(--foreground) 8% + ); + --background-inverse: var(--foreground); + + --default-hover: color-mix( + in oklab, + var(--default) 96%, + var(--default-foreground) 4% + ); + --accent-hover: color-mix( + in oklab, + var(--accent) 90%, + var(--accent-foreground) 10% + ); + --success-hover: color-mix( + in oklab, + var(--success) 90%, + var(--success-foreground) 10% + ); + --warning-hover: color-mix( + in oklab, + var(--warning) 90%, + var(--warning-foreground) 10% + ); + --danger-hover: color-mix( + in oklab, + var(--danger) 90%, + var(--danger-foreground) 10% + ); + + --field-hover: color-mix( + in oklab, + var(--field-background, var(--default)) 90%, + var(--field-foreground, var(--foreground)) 2% + ); + --field-focus: var(--field-background, var(--default)); + --field-border-hover: color-mix( + in oklab, + var(--field-border, var(--border)) 88%, + var(--field-foreground, var(--foreground)) 10% + ); + --field-border-focus: color-mix( + in oklab, + var(--field-border, var(--border)) 74%, + var(--field-foreground, var(--foreground)) 22% + ); + + --default-soft: color-mix(in oklab, var(--default) 50%, transparent); + --default-soft-foreground: var(--default-foreground); + --default-soft-hover: color-mix(in oklab, var(--default) 60%, transparent); + + --accent-soft: color-mix(in oklab, var(--accent) 12%, transparent); + --accent-soft-foreground: color-mix( + in oklab, + var(--accent) 80%, + var(--foreground) 30% + ); + --accent-soft-hover: color-mix(in oklab, var(--accent) 16%, transparent); + + --danger-soft: color-mix(in oklab, var(--danger) 15%, transparent); + --danger-soft-foreground: color-mix( + in oklab, + var(--danger) 80%, + var(--foreground) 30% + ); + --danger-soft-hover: color-mix(in oklab, var(--danger) 20%, transparent); + + --warning-soft: color-mix(in oklab, var(--warning) 12%, transparent); + --warning-soft-foreground: color-mix( + in oklab, + var(--warning) 80%, + var(--foreground) 30% + ); + --warning-soft-hover: color-mix(in oklab, var(--warning) 16%, transparent); + + --success-soft: color-mix(in oklab, var(--success) 12%, transparent); + --success-soft-foreground: color-mix( + in oklab, + var(--success) 80%, + var(--foreground) 30% + ); + --success-soft-hover: color-mix(in oklab, var(--success) 16%, transparent); + + --separator-secondary: color-mix( + in oklab, + var(--surface) 85%, + var(--surface-foreground) 15% + ); + --separator-tertiary: color-mix( + in oklab, + var(--surface) 81%, + var(--surface-foreground) 19% + ); + + --border-secondary: color-mix( + in oklab, + var(--surface) 78%, + var(--surface-foreground) 22% + ); + --border-tertiary: color-mix( + in oklab, + var(--surface) 66%, + var(--surface-foreground) 34% + ); + } + + /* Vibrant palette - more saturated soft foregrounds, less contrast */ + [data-vibrant-palette="true"]:not(.dark):not([data-theme="dark"]) { + --accent-soft-foreground: color-mix( + in oklab, + var(--accent) 92%, + var(--foreground) 8% + ); + --danger-soft-foreground: color-mix( + in oklab, + var(--danger) 92%, + var(--foreground) 8% + ); + --warning-soft-foreground: color-mix( + in oklab, + var(--warning) 92%, + var(--foreground) 8% + ); + --success-soft-foreground: color-mix( + in oklab, + var(--success) 92%, + var(--foreground) 8% + ); + } + + [data-vibrant-palette="true"].dark, + [data-vibrant-palette="true"][data-theme="dark"] { + --accent-soft-foreground: color-mix( + in oklab, + var(--accent) 92%, + var(--foreground) 8% + ); + --danger-soft-foreground: color-mix( + in oklab, + var(--danger) 92%, + var(--foreground) 8% + ); + --warning-soft-foreground: color-mix( + in oklab, + var(--warning) 92%, + var(--foreground) 8% + ); + --success-soft-foreground: color-mix( + in oklab, + var(--success) 92%, + var(--foreground) 8% + ); + } +} diff --git a/packages/styles/themes/shared/theme.css b/packages/styles/themes/shared/theme.css new file mode 100644 index 0000000..043da33 --- /dev/null +++ b/packages/styles/themes/shared/theme.css @@ -0,0 +1,168 @@ +/* Adapted from HeroUI v3, ce90ea3. Copyright 2025 NextUI Inc. + * See third-party/HEROUI-LICENSE. Modified: hv- class prefix; Vue state adapters. */ +@theme inline { + --color-background: var(--background); + --color-foreground: var(--foreground); + + --color-surface: var(--surface); + --color-surface-foreground: var(--surface-foreground); + --color-surface-hover: var(--surface-hover); + + --color-surface-secondary: var(--surface-secondary); + --color-surface-secondary-foreground: var(--surface-secondary-foreground); + + --color-surface-tertiary: var(--surface-tertiary); + --color-surface-tertiary-foreground: var(--surface-tertiary-foreground); + + --color-overlay: var(--overlay); + --color-overlay-foreground: var(--overlay-foreground); + + --color-muted: var(--muted); + + --color-accent: var(--accent); + --color-accent-foreground: var(--accent-foreground); + + --color-segment: var(--segment); + --color-segment-foreground: var(--segment-foreground); + + --color-border: var(--border); + --color-separator: var(--separator); + --color-focus: var(--focus); + --color-link: var(--link); + + --color-default: var(--default); + --color-default-foreground: var(--default-foreground); + + --color-success: var(--success); + --color-success-foreground: var(--success-foreground); + + --color-warning: var(--warning); + --color-warning-foreground: var(--warning-foreground); + + --color-danger: var(--danger); + --color-danger-foreground: var(--danger-foreground); + + --color-backdrop: var(--backdrop); + + --shadow-surface: var(--surface-shadow); + --shadow-overlay: var(--overlay-shadow); + --shadow-field: var(--field-shadow); + + /* Form Field Tokens */ + --color-field: var(--field-background, var(--default)); + --color-field-hover: var(--field-hover); + --color-field-foreground: var(--field-foreground, var(--foreground)); + --color-field-placeholder: var(--field-placeholder, var(--muted)); + --color-field-border: var(--field-border, var(--border)); + --radius-field: var(--field-radius, calc(var(--radius) * 1.5)); + --border-width-field: var(--field-border-width, var(--border-width)); + + /* Color Tokens */ + --color-background-secondary: var(--background-secondary); + --color-background-tertiary: var(--background-tertiary); + --color-background-inverse: var(--background-inverse); + + --color-default-hover: var(--default-hover); + --color-accent-hover: var(--accent-hover); + --color-success-hover: var(--success-hover); + --color-warning-hover: var(--warning-hover); + --color-danger-hover: var(--danger-hover); + + /* Form Field Colors */ + --color-field-focus: var(--field-focus); + --color-field-border-hover: var(--field-border-hover); + --color-field-border-focus: var(--field-border-focus); + + /* Soft Colors */ + --color-default-soft: var(--default-soft); + --color-default-soft-foreground: var(--default-soft-foreground); + --color-default-soft-hover: var(--default-soft-hover); + + --color-accent-soft: var(--accent-soft); + --color-accent-soft-foreground: var(--accent-soft-foreground); + --color-accent-soft-hover: var(--accent-soft-hover); + + --color-danger-soft: var(--danger-soft); + --color-danger-soft-foreground: var(--danger-soft-foreground); + --color-danger-soft-hover: var(--danger-soft-hover); + + --color-warning-soft: var(--warning-soft); + --color-warning-soft-foreground: var(--warning-soft-foreground); + --color-warning-soft-hover: var(--warning-soft-hover); + + --color-success-soft: var(--success-soft); + --color-success-soft-foreground: var(--success-soft-foreground); + --color-success-soft-hover: var(--success-soft-hover); + + /* Separator Colors - Levels */ + --color-separator-secondary: var(--separator-secondary); + --color-separator-tertiary: var(--separator-tertiary); + + /* Border Colors - Levels */ + --color-border-secondary: var(--border-secondary); + --color-border-tertiary: var(--border-tertiary); + + /* Radius and default sizes - defaults can change by just changing the --radius */ + --radius-xs: calc(var(--radius) * 0.25); /* 0.125rem (2px) */ + --radius-sm: calc(var(--radius) * 0.5); /* 0.25rem (4px) */ + --radius-md: calc(var(--radius) * 0.75); /* 0.375rem (6px) */ + --radius-lg: calc(var(--radius) * 1); /* 0.5rem (8px) */ + --radius-xl: calc(var(--radius) * 1.5); /* 0.75rem (12px) */ + --radius-2xl: calc(var(--radius) * 2); /* 1rem (16px) */ + --radius-3xl: calc(var(--radius) * 3); /* 1.5rem (24px) */ + --radius-4xl: calc(var(--radius) * 4); /* 2rem (32px) */ + + /* Transition Timing Functions */ + --ease-smooth: ease; /* same as transition: ease; */ + /* These custom curves are made by https://twitter.com/bdc */ + + /* From smoother to faster */ + --ease-in-quad: cubic-bezier(0.55, 0.085, 0.68, 0.53); + --ease-in-cubic: cubic-bezier(0.55, 0.055, 0.675, 0.19); + --ease-in-quart: cubic-bezier(0.895, 0.03, 0.685, 0.22); + --ease-in-quint: cubic-bezier(0.755, 0.05, 0.855, 0.06); + --ease-in-expo: cubic-bezier(0.95, 0.05, 0.795, 0.035); + --ease-in-circ: cubic-bezier(0.6, 0.04, 0.98, 0.335); + /* From slower to faster */ + --ease-out-quad: cubic-bezier(0.25, 0.46, 0.45, 0.94); + --ease-out-cubic: cubic-bezier(0.215, 0.61, 0.355, 1); + --ease-out-quart: cubic-bezier(0.165, 0.84, 0.44, 1); + --ease-out-quint: cubic-bezier(0.23, 1, 0.32, 1); + --ease-out-expo: cubic-bezier(0.19, 1, 0.22, 1); + --ease-out-circ: cubic-bezier(0.075, 0.82, 0.165, 1); + /* Custom smooth-out curve: fast start, smooth stop - Apple style */ + --ease-out-fluid: cubic-bezier(0.32, 0.72, 0, 1); + /* From slower to faster */ + --ease-in-out-quad: cubic-bezier(0.455, 0.03, 0.515, 0.955); + --ease-in-out-cubic: cubic-bezier(0.645, 0.045, 0.355, 1); + --ease-in-out-quart: cubic-bezier(0.77, 0, 0.175, 1); + --ease-in-out-quint: cubic-bezier(0.86, 0, 0.07, 1); + --ease-in-out-expo: cubic-bezier(1, 0, 0, 1); + --ease-in-out-circ: cubic-bezier(0.785, 0.135, 0.15, 0.86); + + /* Linear */ + --ease-linear: linear; + + /* Animations */ + --animate-spin-fast: spin 0.75s linear infinite; + --animate-skeleton: skeleton 2s linear infinite; + --animate-caret-blink: caret-blink 1.2s ease-out infinite; + + @keyframes skeleton { + 100% { + transform: translateX(200%); + } + } + + @keyframes caret-blink { + 0%, + 70%, + 100% { + opacity: 1; + } + 20%, + 50% { + opacity: 0; + } + } +} diff --git a/packages/styles/utilities/index.css b/packages/styles/utilities/index.css new file mode 100644 index 0000000..4207073 --- /dev/null +++ b/packages/styles/utilities/index.css @@ -0,0 +1,96 @@ +/* === Focus Ring === */ +@utility focus-ring { + @apply ring-2 ring-focus ring-offset-0 ring-offset-background outline-none; + /* Overrides the ring offset from the theme variables */ + --tw-ring-offset-width: var(--ring-offset-width); +} + +@utility focus-field-ring { + @apply ring-2 ring-focus ring-offset-0 outline-none; + /* No separation - ring sits directly against the element */ + --tw-ring-offset-width: 0px; +} + +@utility invalid-field-ring { + /* Unfocused: show 1px outline */ + @apply outline-1 outline-danger outline-solid; + --tw-ring-offset-width: 3px; + + /* Focused: show 2px ring in danger color, remove outline */ + &:focus, + &:focus-visible, + &[data-focused="true"], + &[data-focus-visible="true"], + &:focus-within, + &[data-focus-within="true"] { + @apply ring-2 ring-danger ring-offset-0; + --tw-ring-offset-width: 0px; + } +} + +@utility no-highlight { + -webkit-tap-highlight-color: transparent; +} + +/** + * Widens the pressable area of a control smaller than the 24px minimum target size + * (WCAG 2.5.8) with a transparent centred overlay, leaving its size, its visible content + * and the surrounding layout untouched. The host must establish a containing block + * (`relative` or `absolute`), otherwise the overlay escapes to the nearest one. + */ +@utility touch-target { + &::after { + content: ""; + @apply absolute top-1/2 left-1/2 size-6 -translate-x-1/2 -translate-y-1/2; + } +} + +/* === Statuses === */ +@utility status-focused { + @apply focus-ring; +} + +@utility status-focused-field { + @apply focus-field-ring; +} + +@utility status-invalid-field { + @apply invalid-field-ring; +} + +@utility status-disabled { + opacity: var(--disabled-opacity); + cursor: var(--cursor-disabled); + pointer-events: none; +} + +@utility status-pending { + @apply pointer-events-none; +} + +/* === Scrollbars (standards-only; apply per scroll slot in component CSS) === */ +@utility scrollbar { + scrollbar-width: var(--scrollbar-width); + scrollbar-color: var(--scrollbar-color); + scrollbar-gutter: var(--scrollbar-gutter); +} + +@utility scrollbar-thin { + scrollbar-width: thin; + scrollbar-color: var(--scrollbar-thumb) var(--scrollbar-track); + scrollbar-gutter: auto; +} + +@utility scrollbar-default { + scrollbar-width: auto; + scrollbar-color: auto; + scrollbar-gutter: auto; +} + +/* Direct properties only — does not inherit none to nested scroll slots */ +@utility scrollbar-none { + scrollbar-width: none; + scrollbar-color: auto; + scrollbar-gutter: auto; + -ms-overflow-style: none; +} diff --git a/packages/styles/variants/index.css b/packages/styles/variants/index.css new file mode 100644 index 0000000..97c05e3 --- /dev/null +++ b/packages/styles/variants/index.css @@ -0,0 +1,106 @@ +/** + * ================================================================================================ + * HeroUI Custom Tailwind CSS Variants + * ================================================================================================ + * + * Custom variants with intelligent fallback: explicit controls override system preferences. + * + * Usage: + * motion-reduce:opacity-0 - Reduced motion accessibility + * motion-safe:animate-spin - Full motion effects + * dark:bg-gray-900 - Dark mode styles + * + * Priority: Explicit data attributes/classes → System preferences (fallback) + * ================================================================================================ + */ + +/* ------------------------------------------------------------------------------------------------- + * motion-reduce — Minimize animations for accessibility + * Priority: data-reduce-motion="true" → prefers-reduced-motion: reduce + * ------------------------------------------------------------------------------------------------- */ +@custom-variant motion-reduce { + /* Explicit: data-reduce-motion="true" on element or ancestor */ + &:is([data-reduce-motion="true"], [data-reduce-motion="true"] *) { + @slot; + + &::before, + &::after { + @slot; + } + } + + /* Fallback: system prefers-reduced-motion setting */ + @media (prefers-reduced-motion: reduce) { + &:not(:is([data-reduce-motion="true"], [data-reduce-motion="true"] *)) { + @slot; + + &::before, + &::after { + @slot; + } + } + } +} + +/* ------------------------------------------------------------------------------------------------- + * motion-safe — Enable full animations and transitions + * Priority: data-reduce-motion="false" → prefers-reduced-motion: no-preference + * ------------------------------------------------------------------------------------------------- */ +@custom-variant motion-safe { + /* Explicit: data-reduce-motion="false" on element or ancestor */ + &:is([data-reduce-motion="false"], [data-reduce-motion="false"] *) { + @slot; + + &::before, + &::after { + @slot; + } + } + + /* Fallback: system has no motion preference set */ + @media (prefers-reduced-motion: no-preference) { + &:not( + :is( + [data-reduce-motion="true"], + [data-reduce-motion="true"] *, + [data-reduce-motion="false"], + [data-reduce-motion="false"] * + ) + ) { + @slot; + + &::before, + &::after { + @slot; + } + } + } +} + +/* ------------------------------------------------------------------------------------------------- + * dark — Dark mode styles + * Priority: .dark class / data-theme="dark" → prefers-color-scheme: dark + * ------------------------------------------------------------------------------------------------- */ +@custom-variant dark { + /* Explicit: .dark class or data-theme="dark" on element or ancestor */ + &:is(.dark, .dark *, [data-theme="dark"], [data-theme="dark"] *) { + @slot; + + &::before, + &::after { + @slot; + } + } + + /* Fallback: system prefers dark color scheme */ + @media (prefers-color-scheme: dark) { + &:not(:is(.dark, .dark *, [data-theme="dark"], [data-theme="dark"] *)) & { + @slot; + + &::before, + &::after { + @slot; + } + } + } +} diff --git a/packages/styles/vite.config.ts b/packages/styles/vite.config.ts new file mode 100644 index 0000000..9878159 --- /dev/null +++ b/packages/styles/vite.config.ts @@ -0,0 +1,22 @@ +import { defineConfig } from "vite"; +import dts from "vite-plugin-dts"; +import tailwindcss from "@tailwindcss/vite"; +export default defineConfig({ + plugins: [ + tailwindcss(), + dts({ + tsconfigPath: "../../tsconfig.json", + include: ["src"], + entryRoot: "src", + }), + ], + build: { + lib: { + entry: { index: "src/index.ts", styles: "styles-entry.ts" }, + formats: ["es"], + fileName: (_, name) => `${name}.js`, + cssFileName: "styles", + }, + rollupOptions: { external: ["tailwind-variants"] }, + }, +}); diff --git a/packages/vue/package.json b/packages/vue/package.json new file mode 100644 index 0000000..336b670 --- /dev/null +++ b/packages/vue/package.json @@ -0,0 +1,28 @@ +{ + "name": "@heroui-vue/components", + "version": "0.0.1", + "private": true, + "type": "module", + "files": [ + "dist" + ], + "main": "./dist/index.js", + "types": "./dist/index.d.ts", + "exports": { + ".": { + "types": "./dist/index.d.ts", + "import": "./dist/index.js" + } + }, + "sideEffects": false, + "scripts": { + "build": "vite build" + }, + "dependencies": { + "@heroui-vue/styles": "workspace:*", + "reka-ui": "^2.11.0" + }, + "peerDependencies": { + "vue": "^3.5.0" + } +} diff --git a/packages/vue/src/components/button/Button.vue b/packages/vue/src/components/button/Button.vue new file mode 100644 index 0000000..6ceb7f9 --- /dev/null +++ b/packages/vue/src/components/button/Button.vue @@ -0,0 +1,93 @@ + + diff --git a/packages/vue/src/components/card/Card.vue b/packages/vue/src/components/card/Card.vue new file mode 100644 index 0000000..11616a5 --- /dev/null +++ b/packages/vue/src/components/card/Card.vue @@ -0,0 +1,16 @@ + + diff --git a/packages/vue/src/components/card/CardContent.vue b/packages/vue/src/components/card/CardContent.vue new file mode 100644 index 0000000..875317e --- /dev/null +++ b/packages/vue/src/components/card/CardContent.vue @@ -0,0 +1,8 @@ + + diff --git a/packages/vue/src/components/card/CardDescription.vue b/packages/vue/src/components/card/CardDescription.vue new file mode 100644 index 0000000..aca6711 --- /dev/null +++ b/packages/vue/src/components/card/CardDescription.vue @@ -0,0 +1,8 @@ + + diff --git a/packages/vue/src/components/card/CardFooter.vue b/packages/vue/src/components/card/CardFooter.vue new file mode 100644 index 0000000..cd06101 --- /dev/null +++ b/packages/vue/src/components/card/CardFooter.vue @@ -0,0 +1,8 @@ + + diff --git a/packages/vue/src/components/card/CardHeader.vue b/packages/vue/src/components/card/CardHeader.vue new file mode 100644 index 0000000..957ab30 --- /dev/null +++ b/packages/vue/src/components/card/CardHeader.vue @@ -0,0 +1,8 @@ + + diff --git a/packages/vue/src/components/card/CardTitle.vue b/packages/vue/src/components/card/CardTitle.vue new file mode 100644 index 0000000..ab3ce80 --- /dev/null +++ b/packages/vue/src/components/card/CardTitle.vue @@ -0,0 +1,8 @@ + + diff --git a/packages/vue/src/components/description/Description.vue b/packages/vue/src/components/description/Description.vue new file mode 100644 index 0000000..a405768 --- /dev/null +++ b/packages/vue/src/components/description/Description.vue @@ -0,0 +1,17 @@ + + diff --git a/packages/vue/src/components/input/Input.vue b/packages/vue/src/components/input/Input.vue new file mode 100644 index 0000000..d0bcb7d --- /dev/null +++ b/packages/vue/src/components/input/Input.vue @@ -0,0 +1,73 @@ + + diff --git a/packages/vue/src/components/label/Label.vue b/packages/vue/src/components/label/Label.vue new file mode 100644 index 0000000..1404a47 --- /dev/null +++ b/packages/vue/src/components/label/Label.vue @@ -0,0 +1,25 @@ + + diff --git a/packages/vue/src/components/switch/FieldError.vue b/packages/vue/src/components/switch/FieldError.vue new file mode 100644 index 0000000..408f9ec --- /dev/null +++ b/packages/vue/src/components/switch/FieldError.vue @@ -0,0 +1,24 @@ + + diff --git a/packages/vue/src/components/switch/Switch.vue b/packages/vue/src/components/switch/Switch.vue new file mode 100644 index 0000000..7ceecb5 --- /dev/null +++ b/packages/vue/src/components/switch/Switch.vue @@ -0,0 +1,201 @@ + + diff --git a/packages/vue/src/components/switch/SwitchContent.vue b/packages/vue/src/components/switch/SwitchContent.vue new file mode 100644 index 0000000..5f4e948 --- /dev/null +++ b/packages/vue/src/components/switch/SwitchContent.vue @@ -0,0 +1,71 @@ + + diff --git a/packages/vue/src/components/switch/SwitchControl.vue b/packages/vue/src/components/switch/SwitchControl.vue new file mode 100644 index 0000000..d93a9f4 --- /dev/null +++ b/packages/vue/src/components/switch/SwitchControl.vue @@ -0,0 +1,16 @@ + + diff --git a/packages/vue/src/components/switch/SwitchGroup.vue b/packages/vue/src/components/switch/SwitchGroup.vue new file mode 100644 index 0000000..3860cc5 --- /dev/null +++ b/packages/vue/src/components/switch/SwitchGroup.vue @@ -0,0 +1,17 @@ + + diff --git a/packages/vue/src/components/switch/SwitchIcon.vue b/packages/vue/src/components/switch/SwitchIcon.vue new file mode 100644 index 0000000..f476fe0 --- /dev/null +++ b/packages/vue/src/components/switch/SwitchIcon.vue @@ -0,0 +1,3 @@ + diff --git a/packages/vue/src/components/switch/SwitchThumb.vue b/packages/vue/src/components/switch/SwitchThumb.vue new file mode 100644 index 0000000..8d3e558 --- /dev/null +++ b/packages/vue/src/components/switch/SwitchThumb.vue @@ -0,0 +1,3 @@ + diff --git a/packages/vue/src/components/switch/context.ts b/packages/vue/src/components/switch/context.ts new file mode 100644 index 0000000..e1d0a85 --- /dev/null +++ b/packages/vue/src/components/switch/context.ts @@ -0,0 +1,19 @@ +import type { ComputedRef, InjectionKey, Ref } from "vue"; +export interface SwitchContext { + hovered: Ref; + pressed: Ref; + focusVisible: Ref; + checked: ComputedRef; + disabled: ComputedRef; + readOnly: ComputedRef; + required: ComputedRef; + invalid: ComputedRef; + descriptionIds: Ref; + errorIds: Ref; + error: Ref; + controlAttrs: () => Record; + id: ComputedRef; + update: (value: boolean) => void; +} +export const switchKey: InjectionKey = + Symbol("HeroUIVue.Switch"); diff --git a/packages/vue/src/index.ts b/packages/vue/src/index.ts new file mode 100644 index 0000000..6a4e75b --- /dev/null +++ b/packages/vue/src/index.ts @@ -0,0 +1,38 @@ +export { default as Button } from "./components/button/Button.vue"; +export { default as Card } from "./components/card/Card.vue"; +export { default as Input } from "./components/input/Input.vue"; +export { default as Switch } from "./components/switch/Switch.vue"; +export { default as CardHeader } from "./components/card/CardHeader.vue"; +export { default as CardTitle } from "./components/card/CardTitle.vue"; +export { default as CardDescription } from "./components/card/CardDescription.vue"; +export { default as CardContent } from "./components/card/CardContent.vue"; +export { default as CardFooter } from "./components/card/CardFooter.vue"; +export { default as SwitchContent } from "./components/switch/SwitchContent.vue"; +export { default as SwitchControl } from "./components/switch/SwitchControl.vue"; +export { default as SwitchThumb } from "./components/switch/SwitchThumb.vue"; +export { default as SwitchIcon } from "./components/switch/SwitchIcon.vue"; +export { default as Label } from "./components/label/Label.vue"; +export { default as Description } from "./components/description/Description.vue"; +export { + buttonVariants, + cardVariants, + inputVariants, + switchVariants, + type ButtonVariants, + type CardVariants, + type InputVariants, + type SwitchVariants, +} from "@heroui-vue/styles"; +export type { + ButtonProps, + CardProps, + InputProps, + SwitchProps, + SwitchGroupProps, + LabelProps, +} from "./types"; + +export { tv, cn, type VariantProps } from "@heroui-vue/styles"; + +export { default as SwitchGroup } from "./components/switch/SwitchGroup.vue"; +export { default as FieldError } from "./components/switch/FieldError.vue"; diff --git a/packages/vue/src/types.ts b/packages/vue/src/types.ts new file mode 100644 index 0000000..8548428 --- /dev/null +++ b/packages/vue/src/types.ts @@ -0,0 +1,14 @@ +import type Button from "./components/button/Button.vue"; +import type Card from "./components/card/Card.vue"; +import type Input from "./components/input/Input.vue"; +import type Switch from "./components/switch/Switch.vue"; + +export type ButtonProps = InstanceType["$props"]; +export type CardProps = InstanceType["$props"]; +export type InputProps = InstanceType["$props"]; +export type SwitchProps = InstanceType["$props"]; + +import type SwitchGroup from "./components/switch/SwitchGroup.vue"; +import type Label from "./components/label/Label.vue"; +export type SwitchGroupProps = InstanceType["$props"]; +export type LabelProps = InstanceType["$props"]; diff --git a/packages/vue/vite.config.ts b/packages/vue/vite.config.ts new file mode 100644 index 0000000..1e82e24 --- /dev/null +++ b/packages/vue/vite.config.ts @@ -0,0 +1,18 @@ +import { defineConfig } from "vite"; +import vue from "@vitejs/plugin-vue"; +import dts from "vite-plugin-dts"; +export default defineConfig({ + plugins: [ + vue(), + dts({ + tsconfigPath: "../../tsconfig.json", + include: ["src"], + entryRoot: "src", + aliasesExclude: ["@heroui-vue/styles"], + }), + ], + build: { + lib: { entry: "src/index.ts", formats: ["es"], fileName: "index" }, + rollupOptions: { external: ["vue", "reka-ui", "@heroui-vue/styles"] }, + }, +}); diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml new file mode 100644 index 0000000..181790d --- /dev/null +++ b/pnpm-lock.yaml @@ -0,0 +1,4053 @@ +lockfileVersion: '9.0' + +settings: + autoInstallPeers: true + excludeLinksFromLockfile: false + +importers: + + .: + devDependencies: + '@types/node': + specifier: ^22.0.0 + version: 22.20.5 + '@vitejs/plugin-vue': + specifier: ^6.0.0 + version: 6.0.10(vite@7.3.7(@types/node@22.20.5)(jiti@2.7.0)(lightningcss@1.32.0))(vue@3.5.44(typescript@5.9.3)) + '@vue/server-renderer': + specifier: ^3.5.44 + version: 3.5.44 + '@vue/test-utils': + specifier: ^2.4.6 + version: 2.5.1(@vue/compiler-dom@3.5.44)(@vue/server-renderer@3.5.44)(vue@3.5.44(typescript@5.9.3)) + jsdom: + specifier: ^26.1.0 + version: 26.1.0(supports-color@8.1.1) + prettier: + specifier: ^3.6.2 + version: 3.9.10 + typescript: + specifier: ~5.9.3 + version: 5.9.3 + vite: + specifier: ^7.1.0 + version: 7.3.7(@types/node@22.20.5)(jiti@2.7.0)(lightningcss@1.32.0) + vite-plugin-dts: + specifier: ^4.5.4 + version: 4.5.4(@types/node@22.20.5)(rollup@4.64.9)(supports-color@8.1.1)(typescript@5.9.3)(vite@7.3.7(@types/node@22.20.5)(jiti@2.7.0)(lightningcss@1.32.0)) + vitest: + specifier: ^3.2.4 + version: 3.2.7(@types/node@22.20.5)(jiti@2.7.0)(jsdom@26.1.0(supports-color@8.1.1))(lightningcss@1.32.0)(supports-color@8.1.1) + vue: + specifier: ^3.5.44 + version: 3.5.44(typescript@5.9.3) + vue-tsc: + specifier: ^3.1.0 + version: 3.3.13(typescript@5.9.3) + + apps/docs: + dependencies: + '@heroui-vue/components': + specifier: workspace:* + version: link:../../packages/vue + '@heroui-vue/styles': + specifier: workspace:* + version: link:../../packages/styles + '@tabler/icons-vue': + specifier: ^3.49.0 + version: 3.49.0(vue@3.5.44(typescript@5.9.3)) + reka-ui: + specifier: ^2.11.0 + version: 2.11.0(vue@3.5.44(typescript@5.9.3)) + vue: + specifier: ^3.5.44 + version: 3.5.44(typescript@5.9.3) + devDependencies: + '@tailwindcss/vite': + specifier: ^4.1.0 + version: 4.3.3(vite@7.3.7(@types/node@22.20.5)(jiti@2.7.0)(lightningcss@1.32.0)) + tailwindcss: + specifier: ^4.1.0 + version: 4.3.3 + vitepress: + specifier: ^1.6.4 + version: 1.6.4(@algolia/client-search@5.60.0)(@types/node@22.20.5)(lightningcss@1.32.0)(postcss@8.5.30)(search-insights@2.17.3)(typescript@5.9.3) + + apps/playground: + dependencies: + '@heroui-vue/components': + specifier: workspace:* + version: link:../../packages/vue + '@heroui-vue/styles': + specifier: workspace:* + version: link:../../packages/styles + vue: + specifier: ^3.5.44 + version: 3.5.44(typescript@5.9.3) + devDependencies: + '@tailwindcss/vite': + specifier: ^4.1.0 + version: 4.3.3(vite@7.3.7(@types/node@22.20.5)(jiti@2.7.0)(lightningcss@1.32.0)) + tailwindcss: + specifier: ^4.1.0 + version: 4.3.3 + + packages/styles: + dependencies: + tailwind-variants: + specifier: ^3.1.0 + version: 3.3.1(tailwindcss@4.3.3) + devDependencies: + '@tailwindcss/vite': + specifier: ^4.1.0 + version: 4.3.3(vite@7.3.7(@types/node@22.20.5)(jiti@2.7.0)(lightningcss@1.32.0)) + tailwindcss: + specifier: ^4.1.0 + version: 4.3.3 + + packages/vue: + dependencies: + '@heroui-vue/styles': + specifier: workspace:* + version: link:../styles + reka-ui: + specifier: ^2.11.0 + version: 2.11.0(vue@3.5.44(typescript@5.9.3)) + vue: + specifier: ^3.5.0 + version: 3.5.44(typescript@5.9.3) + +packages: + + '@algolia/abtesting@1.26.0': + resolution: {integrity: sha512-h6ff/as504npvSqhLlh1qw3B8lFktXgr6AOL5vkP4WCLU1oH+VCBh2K4x4Kvewnwr7kchH6HgLm3CcS8ZAYi8A==} + engines: {node: '>= 14.0.0'} + + '@algolia/autocomplete-core@1.17.7': + resolution: {integrity: sha512-BjiPOW6ks90UKl7TwMv7oNQMnzU+t/wk9mgIDi6b1tXpUek7MW0lbNOUHpvam9pe3lVCf4xPFT+lK7s+e+fs7Q==} + + '@algolia/autocomplete-plugin-algolia-insights@1.17.7': + resolution: {integrity: sha512-Jca5Ude6yUOuyzjnz57og7Et3aXjbwCSDf/8onLHSQgw1qW3ALl9mrMWaXb5FmPVkV3EtkD2F/+NkT6VHyPu9A==} + peerDependencies: + search-insights: '>= 1 < 3' + + '@algolia/autocomplete-preset-algolia@1.17.7': + resolution: {integrity: sha512-ggOQ950+nwbWROq2MOCIL71RE0DdQZsceqrg32UqnhDz8FlO9rL8ONHNsI2R1MH0tkgVIDKI/D0sMiUchsFdWA==} + peerDependencies: + '@algolia/client-search': '>= 4.9.1 < 6' + algoliasearch: '>= 4.9.1 < 6' + + '@algolia/autocomplete-shared@1.17.7': + resolution: {integrity: sha512-o/1Vurr42U/qskRSuhBH+VKxMvkkUVTLU6WZQr+L5lGZZLYWyhdzWjW0iGXY7EkwRTjBqvN2EsR81yCTGV/kmg==} + peerDependencies: + '@algolia/client-search': '>= 4.9.1 < 6' + algoliasearch: '>= 4.9.1 < 6' + + '@algolia/client-abtesting@5.60.0': + resolution: {integrity: sha512-eLrG+gFBLcr8S9JuDc75K3jC8irl7v5ZlxSlR4o7N2VCGfmEbKEfu/J/fIuf5MVHV4NOCutyHD7CbxyZEyIzFQ==} + engines: {node: '>= 14.0.0'} + + '@algolia/client-analytics@5.60.0': + resolution: {integrity: sha512-6Cg5ChVTSz5lP8F+sseoCxL5Jedyo9TSi7crgNNABOFRwlgauVfvZircY712ywpLJCJ7Yw7smEN4eCt9eWRKRg==} + engines: {node: '>= 14.0.0'} + + '@algolia/client-common@5.60.0': + resolution: {integrity: sha512-GWW9ilvJJY1tVsyz8CRqRGFnl9WdLjxXXUexSvEBhfgoFf3JvFTPDPClfS4sB36AlIDJ4PnJvffbCyhqXB4l1g==} + engines: {node: '>= 14.0.0'} + + '@algolia/client-insights@5.60.0': + resolution: {integrity: sha512-YOG1UOQdbOiQMZE3AnquBiHQrSdOWEcwx8caisOFT/VZMj6UZOsu4RdOn6tBEmWDXagyPEc3u9d9zySxMR2+Xw==} + engines: {node: '>= 14.0.0'} + + '@algolia/client-personalization@5.60.0': + resolution: {integrity: sha512-TRFAnHeXuNoYffzeZUpLX6QFmUABIn/BlhdG+8JTn0x3T4KHVPGMsXkWNXOigrzLf03D+/Cb66tYnrcSsXRoMw==} + engines: {node: '>= 14.0.0'} + + '@algolia/client-query-suggestions@5.60.0': + resolution: {integrity: sha512-p8hGUjBGy4qL9lbiEqDpci5hG5Ru74iTBtz731NapdSkhJRlVYdjSXIO5k8RvtipNSjXmFjjV8RsHceLd1oaPw==} + engines: {node: '>= 14.0.0'} + + '@algolia/client-search@5.60.0': + resolution: {integrity: sha512-MP9hqPQGnE04De15am/MXURtU/OudFkx4jrzlfiB9P+cUkDO/P/Opel0Kqwwwyzbu4OHaU2mIjAXkpaiRic7uQ==} + engines: {node: '>= 14.0.0'} + + '@algolia/ingestion@1.60.0': + resolution: {integrity: sha512-gwLAiDSsGd5fhBUz/XwRM7okBx7KQvlS4WWOIUiy4Rb6SiebEXf38Woha7+S0qBRxEjtH7JHgL6xvvnYWrGCpQ==} + engines: {node: '>= 14.0.0'} + + '@algolia/monitoring@1.60.0': + resolution: {integrity: sha512-s6l5VRvvebJeCmyapl9GBh7R8d4yimO1w7SfpIaejws8Xd+2Q2qS0NMiRWefHFO8hWqNUC0eQ/GQM+sbmS2Zmg==} + engines: {node: '>= 14.0.0'} + + '@algolia/recommend@5.60.0': + resolution: {integrity: sha512-c4dZ8J0AslIIqENbwMwbcFVuLJoLlFBlRfU518sl0FZnmuJTkXQDBeGV/uLzZos1AbaxGYOlwGYwdGI+pPEMcA==} + engines: {node: '>= 14.0.0'} + + '@algolia/requester-browser-xhr@5.60.0': + resolution: {integrity: sha512-nz4eILpuYli7fsbYl5btdm8Gcdef5h38cuF4urKFpi94bFcDTdegJpYthJL3lENNsayJvLcLP3G6/oFT5ToNuQ==} + engines: {node: '>= 14.0.0'} + + '@algolia/requester-fetch@5.60.0': + resolution: {integrity: sha512-3MWvjJXSMIE3tuNJS4WLQuvHgeG56ZFoNKj4WUkOYea0aBU7kGVI4NrTyThagItI+yhQex+fxOjkAaSPRUAffA==} + engines: {node: '>= 14.0.0'} + + '@algolia/requester-node-http@5.60.0': + resolution: {integrity: sha512-Cx3D6S8NzSi9es4MIFljvImq+Ae2vo9gHyX+6RMMA0U+xy+C62mYE03X9u+mX+XXkgTWbkURCbMtuFDYRDNRig==} + engines: {node: '>= 14.0.0'} + + '@asamuzakjp/css-color@3.2.0': + resolution: {integrity: sha512-K1A6z8tS3XsmCMM86xoWdn7Fkdn9m6RSVtocUrJYIwZnFVkng/PvkEoWtOWmP+Scc6saYWHWZYbndEEXxl24jw==} + + '@babel/helper-string-parser@7.29.7': + resolution: {integrity: sha512-Pb5ijPrZ89GDH8223L4UP8i6QApWxs04RbPQJTeWDV0/keR2E36MeKnyr6LYmUUvqRRI+Iv87SuF1W6ErINzYw==} + engines: {node: '>=6.9.0'} + + '@babel/helper-validator-identifier@7.29.7': + resolution: {integrity: sha512-qehxGkRj55h/ff8EMaJ+cYhyaKlHIxqYDn682wQD7RNp9UujOQsHog2uS0r2vzr4pW+sXf90NeeayjcNaX3fFg==} + engines: {node: '>=6.9.0'} + + '@babel/parser@7.29.9': + resolution: {integrity: sha512-CjXrNHTnvqBVqHgdBysY3vk2T8tpJHb5/RMeHJBTyVa9xgugCB0CJTx/3oO8RV2QRQP391RWpB7D6hLjm8V9uA==} + engines: {node: '>=6.0.0'} + hasBin: true + + '@babel/types@7.29.8': + resolution: {integrity: sha512-Vj1jF3cPfxg7OAfoI7QnVKLoILlm2JF9pnVHrX8qx7AHMiYWT+NDAA7jChlNgRS4WTLc/fD1lXLmPixluj+3Gg==} + engines: {node: '>=6.9.0'} + + '@csstools/color-helpers@5.1.0': + resolution: {integrity: sha512-S11EXWJyy0Mz5SYvRmY8nJYTFFd1LCNV+7cXyAgQtOOuzb4EsgfqDufL+9esx72/eLhsRdGZwaldu/h+E4t4BA==} + engines: {node: '>=18'} + + '@csstools/css-calc@2.1.4': + resolution: {integrity: sha512-3N8oaj+0juUw/1H3YwmDDJXCgTB1gKU6Hc/bB502u9zR0q2vd786XJH9QfrKIEgFlZmhZiq6epXl4rHqhzsIgQ==} + engines: {node: '>=18'} + peerDependencies: + '@csstools/css-parser-algorithms': ^3.0.5 + '@csstools/css-tokenizer': ^3.0.4 + + '@csstools/css-color-parser@3.1.0': + resolution: {integrity: sha512-nbtKwh3a6xNVIp/VRuXV64yTKnb1IjTAEEh3irzS+HkKjAOYLTGNb9pmVNntZ8iVBHcWDA2Dof0QtPgFI1BaTA==} + engines: {node: '>=18'} + peerDependencies: + '@csstools/css-parser-algorithms': ^3.0.5 + '@csstools/css-tokenizer': ^3.0.4 + + '@csstools/css-parser-algorithms@3.0.5': + resolution: {integrity: sha512-DaDeUkXZKjdGhgYaHNJTV9pV7Y9B3b644jCLs9Upc3VeNGg6LWARAT6O+Q+/COo+2gg/bM5rhpMAtf70WqfBdQ==} + engines: {node: '>=18'} + peerDependencies: + '@csstools/css-tokenizer': ^3.0.4 + + '@csstools/css-tokenizer@3.0.4': + resolution: {integrity: sha512-Vd/9EVDiu6PPJt9yAh6roZP6El1xHrdvIVGjyBsHR0RYwNHgL7FJPyIIW4fANJNG6FtyZfvlRPpFI4ZM/lubvw==} + engines: {node: '>=18'} + + '@docsearch/css@3.8.2': + resolution: {integrity: sha512-y05ayQFyUmCXze79+56v/4HpycYF3uFqB78pLPrSV5ZKAlDuIAAJNhaRi8tTdRNXh05yxX/TyNnzD6LwSM89vQ==} + + '@docsearch/js@3.8.2': + resolution: {integrity: sha512-Q5wY66qHn0SwA7Taa0aDbHiJvaFJLOJyHmooQ7y8hlwwQLQ/5WwCcoX0g7ii04Qi2DJlHsd0XXzJ8Ypw9+9YmQ==} + + '@docsearch/react@3.8.2': + resolution: {integrity: sha512-xCRrJQlTt8N9GU0DG4ptwHRkfnSnD/YpdeaXe02iKfqs97TkZJv60yE+1eq/tjPcVnTW8dP5qLP7itifFVV5eg==} + peerDependencies: + '@types/react': '>= 16.8.0 < 19.0.0' + react: '>= 16.8.0 < 19.0.0' + react-dom: '>= 16.8.0 < 19.0.0' + search-insights: '>= 1 < 3' + peerDependenciesMeta: + '@types/react': + optional: true + react: + optional: true + react-dom: + optional: true + search-insights: + optional: true + + '@esbuild/aix-ppc64@0.21.5': + resolution: {integrity: sha512-1SDgH6ZSPTlggy1yI6+Dbkiz8xzpHJEVAlF/AM1tHPLsf5STom9rwtjE4hKAF20FfXXNTFqEYXyJNWh1GiZedQ==} + engines: {node: '>=12'} + cpu: [ppc64] + os: [aix] + + '@esbuild/aix-ppc64@0.28.2': + resolution: {integrity: sha512-XExcO+dvLKvVtNTibSTBej1NCAbaGhWn9Ww1ZPx80qsahhPFe/8jgWP0IchNe0F3HwkU7n8ejhH8bjonqht8mQ==} + engines: {node: '>=18'} + cpu: [ppc64] + os: [aix] + + '@esbuild/android-arm64@0.21.5': + resolution: {integrity: sha512-c0uX9VAUBQ7dTDCjq+wdyGLowMdtR/GoC2U5IYk/7D1H1JYC0qseD7+11iMP2mRLN9RcCMRcjC4YMclCzGwS/A==} + engines: {node: '>=12'} + cpu: [arm64] + os: [android] + + '@esbuild/android-arm64@0.28.2': + resolution: {integrity: sha512-5YfKeeI8qWfBZIX+u2xZC3Zlb3Os/gLS2sbEKM+I4ZOcsWmHS2WLysCcQZDAFRslDUU5Oiq44gf6PYN1vGwG5A==} + engines: {node: '>=18'} + cpu: [arm64] + os: [android] + + '@esbuild/android-arm@0.21.5': + resolution: {integrity: sha512-vCPvzSjpPHEi1siZdlvAlsPxXl7WbOVUBBAowWug4rJHb68Ox8KualB+1ocNvT5fjv6wpkX6o/iEpbDrf68zcg==} + engines: {node: '>=12'} + cpu: [arm] + os: [android] + + '@esbuild/android-arm@0.28.2': + resolution: {integrity: sha512-kXXoiPVVGQcnIYGOeaovwOURpniDBpSq4A03qkQ+BMQqtGG6HYap3xne9C1O1yo4TR3qxlCX5IqqmX6fFo2Lqg==} + engines: {node: '>=18'} + cpu: [arm] + os: [android] + + '@esbuild/android-x64@0.21.5': + resolution: {integrity: sha512-D7aPRUUNHRBwHxzxRvp856rjUHRFW1SdQATKXH2hqA0kAZb1hKmi02OpYRacl0TxIGz/ZmXWlbZgjwWYaCakTA==} + engines: {node: '>=12'} + cpu: [x64] + os: [android] + + '@esbuild/android-x64@0.28.2': + resolution: {integrity: sha512-O387ite7SzUyCcy3JQX4P4bLtEA7bLLkx+esve5JHnyYfNTxcVpXZo9jhdB0lTKN44gztELTdU7nS8Nr16Fs1Q==} + engines: {node: '>=18'} + cpu: [x64] + os: [android] + + '@esbuild/darwin-arm64@0.21.5': + resolution: {integrity: sha512-DwqXqZyuk5AiWWf3UfLiRDJ5EDd49zg6O9wclZ7kUMv2WRFr4HKjXp/5t8JZ11QbQfUS6/cRCKGwYhtNAY88kQ==} + engines: {node: '>=12'} + cpu: [arm64] + os: [darwin] + + '@esbuild/darwin-arm64@0.28.2': + resolution: {integrity: sha512-n4KqkOQrraxHJcgjM1RvwbigfQKIKJVpM7xp+KsxiyUSrRdIXnt73VhrPAx0fV44hgfmIVKjxMN9J1t5jySVkw==} + engines: {node: '>=18'} + cpu: [arm64] + os: [darwin] + + '@esbuild/darwin-x64@0.21.5': + resolution: {integrity: sha512-se/JjF8NlmKVG4kNIuyWMV/22ZaerB+qaSi5MdrXtd6R08kvs2qCN4C09miupktDitvh8jRFflwGFBQcxZRjbw==} + engines: {node: '>=12'} + cpu: [x64] + os: [darwin] + + '@esbuild/darwin-x64@0.28.2': + resolution: {integrity: sha512-uq6suIWYP37qzGddBKPw5QEQPi6HiLGsO7UmkpfyaYNQ3D+rN6w6WfwH+nuqcGXWvawGwxOEroO4YGnFh95azw==} + engines: {node: '>=18'} + cpu: [x64] + os: [darwin] + + '@esbuild/freebsd-arm64@0.21.5': + resolution: {integrity: sha512-5JcRxxRDUJLX8JXp/wcBCy3pENnCgBR9bN6JsY4OmhfUtIHe3ZW0mawA7+RDAcMLrMIZaf03NlQiX9DGyB8h4g==} + engines: {node: '>=12'} + cpu: [arm64] + os: [freebsd] + + '@esbuild/freebsd-arm64@0.28.2': + resolution: {integrity: sha512-n+I0BTSRIoy+d6RPKnEVwql5UwBJolytvY4mAOIEJorKlqgPII8ix6slVVrfZ5Tnj7glIZvloylbB/EJPMWEXw==} + engines: {node: '>=18'} + cpu: [arm64] + os: [freebsd] + + '@esbuild/freebsd-x64@0.21.5': + resolution: {integrity: sha512-J95kNBj1zkbMXtHVH29bBriQygMXqoVQOQYA+ISs0/2l3T9/kj42ow2mpqerRBxDJnmkUDCaQT/dfNXWX/ZZCQ==} + engines: {node: '>=12'} + cpu: [x64] + os: [freebsd] + + '@esbuild/freebsd-x64@0.28.2': + resolution: {integrity: sha512-78XJTJkvPs0kz2w61301PJjXl4g7q3JqiYMZ/M/yVI73EHBrCRTgkhu9oqG7vPqq+a/yadEW8aD+agKlk5xrmg==} + engines: {node: '>=18'} + cpu: [x64] + os: [freebsd] + + '@esbuild/linux-arm64@0.21.5': + resolution: {integrity: sha512-ibKvmyYzKsBeX8d8I7MH/TMfWDXBF3db4qM6sy+7re0YXya+K1cem3on9XgdT2EQGMu4hQyZhan7TeQ8XkGp4Q==} + engines: {node: '>=12'} + cpu: [arm64] + os: [linux] + + '@esbuild/linux-arm64@0.28.2': + resolution: {integrity: sha512-pW4AC0P3it8c7do9MVM4p51FzHzdM/TZrerurgRcHJ2WTa1VQ1CIq18xncfpBJw4ojkiZZrKW2yIBWBP92j6Ug==} + engines: {node: '>=18'} + cpu: [arm64] + os: [linux] + + '@esbuild/linux-arm@0.21.5': + resolution: {integrity: sha512-bPb5AHZtbeNGjCKVZ9UGqGwo8EUu4cLq68E95A53KlxAPRmUyYv2D6F0uUI65XisGOL1hBP5mTronbgo+0bFcA==} + engines: {node: '>=12'} + cpu: [arm] + os: [linux] + + '@esbuild/linux-arm@0.28.2': + resolution: {integrity: sha512-XlDnu2q5yoqems+xay6wSAcg9DDD7K9RLKZEBOMZm3ckNpJBvOX20tSfby8KfrrhINDyv9V2YVZKY/SpoGJI8w==} + engines: {node: '>=18'} + cpu: [arm] + os: [linux] + + '@esbuild/linux-ia32@0.21.5': + resolution: {integrity: sha512-YvjXDqLRqPDl2dvRODYmmhz4rPeVKYvppfGYKSNGdyZkA01046pLWyRKKI3ax8fbJoK5QbxblURkwK/MWY18Tg==} + engines: {node: '>=12'} + cpu: [ia32] + os: [linux] + + '@esbuild/linux-ia32@0.28.2': + resolution: {integrity: sha512-CYbnj78HsIeA+DhgUKgFCfvNsTHFhMMrinUrMZpDXJXKN8T3XViTZ/+wtHeVxEWY8ewSzTFN+nRmSwO2tZaLUQ==} + engines: {node: '>=18'} + cpu: [ia32] + os: [linux] + + '@esbuild/linux-loong64@0.21.5': + resolution: {integrity: sha512-uHf1BmMG8qEvzdrzAqg2SIG/02+4/DHB6a9Kbya0XDvwDEKCoC8ZRWI5JJvNdUjtciBGFQ5PuBlpEOXQj+JQSg==} + engines: {node: '>=12'} + cpu: [loong64] + os: [linux] + + '@esbuild/linux-loong64@0.28.2': + resolution: {integrity: sha512-buwkd8nsph4R+ajRvw0qM5Hja/TXQow3ptzWO2EbG/cqcIkHloRrdlBtQlshyYGTNFvfkfJ5tpPLVkY4DtsPfQ==} + engines: {node: '>=18'} + cpu: [loong64] + os: [linux] + + '@esbuild/linux-mips64el@0.21.5': + resolution: {integrity: sha512-IajOmO+KJK23bj52dFSNCMsz1QP1DqM6cwLUv3W1QwyxkyIWecfafnI555fvSGqEKwjMXVLokcV5ygHW5b3Jbg==} + engines: {node: '>=12'} + cpu: [mips64el] + os: [linux] + + '@esbuild/linux-mips64el@0.28.2': + resolution: {integrity: sha512-ZVykbDyk7519VwiNb9Lcj9m8XM6v5V9uKPvrEMkkEedVewf+0itkhahp4HDpgERXhwLRpWFypsGbG/J8s0QjJA==} + engines: {node: '>=18'} + cpu: [mips64el] + os: [linux] + + '@esbuild/linux-ppc64@0.21.5': + resolution: {integrity: sha512-1hHV/Z4OEfMwpLO8rp7CvlhBDnjsC3CttJXIhBi+5Aj5r+MBvy4egg7wCbe//hSsT+RvDAG7s81tAvpL2XAE4w==} + engines: {node: '>=12'} + cpu: [ppc64] + os: [linux] + + '@esbuild/linux-ppc64@0.28.2': + resolution: {integrity: sha512-CAXl+Dtd9UUuJd8pKKdwh6MLm3MUMiqMPmhZ3tTSXPqfyQ3vDl6R5hZdZ/kYojK4ofXtdfSv1tFq8XzWx3heNQ==} + engines: {node: '>=18'} + cpu: [ppc64] + os: [linux] + + '@esbuild/linux-riscv64@0.21.5': + resolution: {integrity: sha512-2HdXDMd9GMgTGrPWnJzP2ALSokE/0O5HhTUvWIbD3YdjME8JwvSCnNGBnTThKGEB91OZhzrJ4qIIxk/SBmyDDA==} + engines: {node: '>=12'} + cpu: [riscv64] + os: [linux] + + '@esbuild/linux-riscv64@0.28.2': + resolution: {integrity: sha512-GeXCej4IQtU1B+QlDV8W/RRvbzI3O/Stss+/bCXv4lZls5WGRtu2a+3JkA3i4qIUlMXpcHebWpF8AkJhATowuA==} + engines: {node: '>=18'} + cpu: [riscv64] + os: [linux] + + '@esbuild/linux-s390x@0.21.5': + resolution: {integrity: sha512-zus5sxzqBJD3eXxwvjN1yQkRepANgxE9lgOW2qLnmr8ikMTphkjgXu1HR01K4FJg8h1kEEDAqDcZQtbrRnB41A==} + engines: {node: '>=12'} + cpu: [s390x] + os: [linux] + + '@esbuild/linux-s390x@0.28.2': + resolution: {integrity: sha512-3H1weTYZPxt/WOhByszQZybS9w5lKzUn1FDMsgEChbHWQwHYQQRfBxgCcZvPhjHfKyJjIievvMmEUawJrdY9Dg==} + engines: {node: '>=18'} + cpu: [s390x] + os: [linux] + + '@esbuild/linux-x64@0.21.5': + resolution: {integrity: sha512-1rYdTpyv03iycF1+BhzrzQJCdOuAOtaqHTWJZCWvijKD2N5Xu0TtVC8/+1faWqcP9iBCWOmjmhoH94dH82BxPQ==} + engines: {node: '>=12'} + cpu: [x64] + os: [linux] + + '@esbuild/linux-x64@0.28.2': + resolution: {integrity: sha512-4xTZr1FUmSoQW4XIWmit3tzQrUTZM+N3P0XV8xROKYF50XfI7xeO90+1bZvNwxIufQ9hDQVRJH5YhgPVF8A/HQ==} + engines: {node: '>=18'} + cpu: [x64] + os: [linux] + + '@esbuild/netbsd-arm64@0.28.2': + resolution: {integrity: sha512-sSATRjPeDBg3pdgHoQfoYBob11Kk1FGa9lui5RIHZCoCkJa9QKlvl3/vKz2usCmYYjs7ymJR/2Nnsqe+Hjt5nw==} + engines: {node: '>=18'} + cpu: [arm64] + os: [netbsd] + + '@esbuild/netbsd-x64@0.21.5': + resolution: {integrity: sha512-Woi2MXzXjMULccIwMnLciyZH4nCIMpWQAs049KEeMvOcNADVxo0UBIQPfSmxB3CWKedngg7sWZdLvLczpe0tLg==} + engines: {node: '>=12'} + cpu: [x64] + os: [netbsd] + + '@esbuild/netbsd-x64@0.28.2': + resolution: {integrity: sha512-lqnzCV+mM0gIADaKihiCg6ifgfU2L3h5E33rNQBN1Y4MaVGnzryzmvvf7UHxprpQdE8hpqLolJ9Rl+SkIRDpyw==} + engines: {node: '>=18'} + cpu: [x64] + os: [netbsd] + + '@esbuild/openbsd-arm64@0.28.2': + resolution: {integrity: sha512-AL2qJILH7lNjrDmCQDvdxMfAUIv8KMNZOvrwAQ8i8//ntL9FflhOyMJ8OZSMBb8/AWXe3/5v5S20y3zCoZWKoQ==} + engines: {node: '>=18'} + cpu: [arm64] + os: [openbsd] + + '@esbuild/openbsd-x64@0.21.5': + resolution: {integrity: sha512-HLNNw99xsvx12lFBUwoT8EVCsSvRNDVxNpjZ7bPn947b8gJPzeHWyNVhFsaerc0n3TsbOINvRP2byTZ5LKezow==} + engines: {node: '>=12'} + cpu: [x64] + os: [openbsd] + + '@esbuild/openbsd-x64@0.28.2': + resolution: {integrity: sha512-QtiuPytchRyC4rwUKhexJdQKvDuZ6hWloi3igqPQNUJCS1/v9EiO3UTOXR6A3FoMo4fnAKbWJdqaIwhOzh8qEw==} + engines: {node: '>=18'} + cpu: [x64] + os: [openbsd] + + '@esbuild/openharmony-arm64@0.28.2': + resolution: {integrity: sha512-WkhYDmpTjLvGlScA1rwjRUmhl4k8oXR3cIbtqWmELgU/dFeHHlEllxDvdWcNJV9rbzCexB5vz8gtNewWLgCT7Q==} + engines: {node: '>=18'} + cpu: [arm64] + os: [openharmony] + + '@esbuild/sunos-x64@0.21.5': + resolution: {integrity: sha512-6+gjmFpfy0BHU5Tpptkuh8+uw3mnrvgs+dSPQXQOv3ekbordwnzTVEb4qnIvQcYXq6gzkyTnoZ9dZG+D4garKg==} + engines: {node: '>=12'} + cpu: [x64] + os: [sunos] + + '@esbuild/sunos-x64@0.28.2': + resolution: {integrity: sha512-GPMSkTOtMnv2U2F8gxe4Io6qmVs+YKyp832Etqqxr0hFngmXQ3rzwytelm3GIn7T4VviRUlf3sOgBOiTdvaf7g==} + engines: {node: '>=18'} + cpu: [x64] + os: [sunos] + + '@esbuild/win32-arm64@0.21.5': + resolution: {integrity: sha512-Z0gOTd75VvXqyq7nsl93zwahcTROgqvuAcYDUr+vOv8uHhNSKROyU961kgtCD1e95IqPKSQKH7tBTslnS3tA8A==} + engines: {node: '>=12'} + cpu: [arm64] + os: [win32] + + '@esbuild/win32-arm64@0.28.2': + resolution: {integrity: sha512-PIhhEkE9uPBleRBrQEJpUn7MBnibZzbGzYWPmY3x+YoVg/95zbjB4CxPPOQ8l5tYYM4mMaCthF8/1DIfBQQyWQ==} + engines: {node: '>=18'} + cpu: [arm64] + os: [win32] + + '@esbuild/win32-ia32@0.21.5': + resolution: {integrity: sha512-SWXFF1CL2RVNMaVs+BBClwtfZSvDgtL//G/smwAc5oVK/UPu2Gu9tIaRgFmYFFKrmg3SyAjSrElf0TiJ1v8fYA==} + engines: {node: '>=12'} + cpu: [ia32] + os: [win32] + + '@esbuild/win32-ia32@0.28.2': + resolution: {integrity: sha512-YmJbfTlvU7Sdn9BB+4PRES4oB6pxgS37MAONj+hBr/cpXS1aBPKXxNnDbu+QCWPj0o9dgyxeq79g6c5P8KeuYA==} + engines: {node: '>=18'} + cpu: [ia32] + os: [win32] + + '@esbuild/win32-x64@0.21.5': + resolution: {integrity: sha512-tQd/1efJuzPC6rCFwEvLtci/xNFcTZknmXs98FYDfGE4wP9ClFV98nyKrzJKVPMhdDnjzLhdUyMX4PsQAPjwIw==} + engines: {node: '>=12'} + cpu: [x64] + os: [win32] + + '@esbuild/win32-x64@0.28.2': + resolution: {integrity: sha512-5ebpxr3nWMzrL/rnUI755Jkuee0bHL/Gq0WTF9lvcpv73wAp5eu8MfBUgWK9bhWvZjj7yX8etf/8tI8Ney695g==} + engines: {node: '>=18'} + cpu: [x64] + os: [win32] + + '@floating-ui/core@1.8.0': + resolution: {integrity: sha512-0CIZ5itps/8x7BG8dEIhs53BvCUH2PCoogtakwRTut+Arm58sJooJ0AuZhLw2HJYIR5cMLNPBSS728sPho2khQ==} + + '@floating-ui/dom@1.8.0': + resolution: {integrity: sha512-yXSrzeHZBTZadLOlfyhCkJHNeLJnHRnRInwdZ40L7ZiaAtrBwoYlsDrX3v5zB1Utk7CLfzcOVnVVWoXEky7Ceg==} + + '@floating-ui/utils@0.2.12': + resolution: {integrity: sha512-HpCo8tmWzLVad5s2d19EhAz5zqrrQ6s69qd6moPMQvkOuSwDT1YgRfWSVuc4ennqrgv3OHppiOGMQ7oC13yIww==} + + '@floating-ui/vue@2.0.1': + resolution: {integrity: sha512-043dyEKD9TDSfz080YH2vobubgg+NIo/9Fw4RAl7sEMpD8Am1DNrrSTl/GpMBjyGHoD/FbJY2QLawY+HSQsEIA==} + peerDependencies: + vue: '>=3.3.0' + + '@iconify-json/simple-icons@1.2.100': + resolution: {integrity: sha512-536pN2RCEQyy5bYwzayrs4e9egr8cmtVcbdSHLaQl/ULUsihzn1eZ0+Hhn50zgz9cbEotiynKsKQSEjFJ7qKmw==} + + '@iconify/types@2.0.0': + resolution: {integrity: sha512-+wluvCrRhXrhyOmRDJ3q8mux9JkKy5SJ/v8ol2tu4FVjyYvtEzkc/3pK15ET6RKg4b4w4BmTk1+gsCUhf21Ykg==} + + '@internationalized/date@3.12.4': + resolution: {integrity: sha512-M1dEn4c1U1HsSlaVR8upZtSqvXrTkHDfv18H01uCSJyjVLDxnBR38v/fMxecmlwXKR4i9HeZcmgQAPE6A+aGJQ==} + + '@internationalized/number@3.6.9': + resolution: {integrity: sha512-GgWy2caO/+hV9sT/oCTWGHvbjmJMPT9kkXzoKRLnkEq7adghhR7UprhvY9sXrKfrp3NcDfhF6QQHXR1KfQbB8g==} + + '@jridgewell/gen-mapping@0.3.13': + resolution: {integrity: sha512-2kkt/7niJ6MgEPxF0bYdQ6etZaA+fQvDcLKckhy1yIQOzaoKjBBjSj63/aLVjYE3qhRt5dvM+uUyfCg6UKCBbA==} + + '@jridgewell/remapping@2.3.5': + resolution: {integrity: sha512-LI9u/+laYG4Ds1TDKSJW2YPrIlcVYOwi2fUC6xB43lueCjgxV4lffOCZCtYFiH6TNOX+tQKXx97T4IKHbhyHEQ==} + + '@jridgewell/resolve-uri@3.1.2': + resolution: {integrity: sha512-bRISgCIjP20/tbWSPWMEi54QVPRZExkuD9lJL+UIxUKtwVJA8wW1Trb1jMs1RFXo1CBTNZ/5hpC9QvmKWdopKw==} + engines: {node: '>=6.0.0'} + + '@jridgewell/sourcemap-codec@1.6.0': + resolution: {integrity: sha512-T7jf+5zgsZHwNJ4lvQ7/aezbyk0nNX+zJVWpmHA7VYsEx7a7qr5Rg5IbtJFqkgze5Y2sruq1RUY8Q837Od7iFw==} + + '@jridgewell/trace-mapping@0.3.31': + resolution: {integrity: sha512-zzNR+SdQSDJzc8joaeP8QQoCQr8NuYx2dIIytl1QeBEZHJ9uW6hebsrYgbz8hJwUQao3TWCMtmfV8Nu1twOLAw==} + + '@microsoft/api-extractor-model@7.33.15': + resolution: {integrity: sha512-UpCnItIJwu03iNTWtJVKv8Qbf0MXN7WLQZUail9cpAQmnZiIX36YPRRoRxz0pocwytzUpmJhstsLkyW5tsaHBA==} + engines: {node: '>=20.9.0'} + + '@microsoft/api-extractor@7.59.4': + resolution: {integrity: sha512-XqseDKIw736qlhQwS9SOpbY4veOiP2Nc7YiWmgXXBmeA3kY9qGXw+Tu7DFpU9FvXywE1z8SvLJKUVxFpcX0kig==} + engines: {node: '>=20.9.0'} + hasBin: true + + '@microsoft/tsdoc-config@0.18.3': + resolution: {integrity: sha512-0I0rGXo1eJziw3EEErkDS9p/0RzBcyOiV+zbSDqOZTeURmhtut+WIvpih0LM5g+ZpZ9SyFxDfkhAcl/r8e2zGw==} + + '@microsoft/tsdoc@0.17.1': + resolution: {integrity: sha512-VHyYyyoH63jFoO3shpw9Zfijk5v/9p/VrClW35z0/q6ooK7sSmxpzOkS4iZPxs3vO4XtBW4H38HRAKkAMIK7DA==} + + '@napi-rs/lzma-linux-x64-gnu@1.5.1': + resolution: {integrity: sha512-oTXEIha4SsuXdTA4Iyskj0kpdx2yVXdhd75c2v3xGrHFfVMsbhTPZU/nMPL4sWKo4pBHm3aucLaqGlF696dTyQ==} + engines: {node: ^22.20 || ^24.12 || >=25} + cpu: [x64] + os: [linux] + libc: [glibc] + + '@one-ini/wasm@0.2.1': + resolution: {integrity: sha512-TUqERXGNTifZ9y2g3wPxQrw3HpHv/02DsW3D90T9x0hhonrL1ZqpSmNrU2XkoIq0fP1N6gZfVQzy2Fw1ZvGBNg==} + + '@rolldown/pluginutils@1.0.1': + resolution: {integrity: sha512-2j9bGt5Jh8hj+vPtgzPtl72j0yRxHAyumoo6TNfAjsLB04UtpSvPbPcDcBMxz7n+9CYB0c1GxQFxYRg2jimqGw==} + + '@rollup/pluginutils@5.4.0': + resolution: {integrity: sha512-MfPp06CjRLfXQ3wY0R8vJDYBy/MvVcc9OulEfR0B8Iv9ko+GCNaRZ+EpJYFl27LhKsZK0o420sYCRHCjfCgeUg==} + engines: {node: '>=14.0.0'} + peerDependencies: + rollup: ^1.20.0||^2.0.0||^3.0.0||^4.0.0 + peerDependenciesMeta: + rollup: + optional: true + + '@rollup/rollup-android-arm-eabi@4.64.9': + resolution: {integrity: sha512-qJmhckvOleXp8R+BaXiVW/S34/3M7pvN17/QcG90A74BDaSvKv8ffY+GYG+a/xU0vEoITzdMSiM7o9HZSQWbfA==} + cpu: [arm] + os: [android] + + '@rollup/rollup-android-arm64@4.64.9': + resolution: {integrity: sha512-dqQgds39BNWGB2ughJ6n2LTQFXk8RAOwnXj6m387OHpygfD93QRS1ODIfpiWyAa9gsFB9l34pSqeLmA0Xk/VBw==} + cpu: [arm64] + os: [android] + + '@rollup/rollup-darwin-arm64@4.64.9': + resolution: {integrity: sha512-scrMx4SGikOSbWknLmPD0v6OeJ1Wih3kyRLdNZnlVbBeKVWp1nRTVcpM0IxDJdc3u8UjesPHTmnX649u8cQpBw==} + cpu: [arm64] + os: [darwin] + + '@rollup/rollup-darwin-x64@4.64.9': + resolution: {integrity: sha512-fkwi2OQR+QWoViRFt08Bsca6G0e9pk/4z+JgmqHq6jSRTT0LtI27KRVK8bu++6L/CBtQ3OZePbqC3bcrwGzTqQ==} + cpu: [x64] + os: [darwin] + + '@rollup/rollup-freebsd-arm64@4.64.9': + resolution: {integrity: sha512-8Apr0Khn0r2MUsDtcOMbp85fDdXsX/E+iLhO17WUjG24m3O8ChArqI0isI7CAdj9Ouq177PHtVtEUpMNE1C4Gw==} + cpu: [arm64] + os: [freebsd] + + '@rollup/rollup-freebsd-x64@4.64.9': + resolution: {integrity: sha512-H+upy4DhBcBZlUsCAMyr8wR0Dg9kj8sGloVZdZ7va2heJM/5jnROxI47dtXseJjlD/VoQe6MrXhY3b5ikOq/Vw==} + cpu: [x64] + os: [freebsd] + + '@rollup/rollup-linux-arm-gnueabihf@4.64.9': + resolution: {integrity: sha512-b50NS9TbAEK/b16vBoKrkeNwy+HvGBXmtBbzX4wcodWOh9dQZvRTN9rUyElIXa36QnwXhU9PAVVkZpqRzSi2Tg==} + cpu: [arm] + os: [linux] + libc: [glibc] + + '@rollup/rollup-linux-arm-musleabihf@4.64.9': + resolution: {integrity: sha512-SdqcudB/FzjLESsRMgXhV+FXGtf6usxXwlMoRW7D/XS3f9CZ4T4wycRBu2h9bVl2AOaPpunoA8ftAM/MF4altQ==} + cpu: [arm] + os: [linux] + libc: [musl] + + '@rollup/rollup-linux-arm64-gnu@4.64.9': + resolution: {integrity: sha512-dg19FFRoovN+KZ+gMHBAq4Do8PgQmBcxpuhux57OuiR0QLavfn8uPBY8CP+UO50bO+xf0tK0GlqI/jld++5E6g==} + cpu: [arm64] + os: [linux] + libc: [glibc] + + '@rollup/rollup-linux-arm64-musl@4.64.9': + resolution: {integrity: sha512-+jyv5ofGmpAvtrzLjSr/e4syskeikEp5L82bUzB76auwOgK1VNVwZV/F2g1Pes9bhTznbejOefAqPglHSKYmTA==} + cpu: [arm64] + os: [linux] + libc: [musl] + + '@rollup/rollup-linux-loong64-gnu@4.64.9': + resolution: {integrity: sha512-MKFXxqmkzCbtNvx/vjiJdss44eRtVabhCtDWcCFD9NHGwP+YkqnM/slnEsv/3fsoq9ukTtudraAjGhptrUPCVg==} + cpu: [loong64] + os: [linux] + libc: [glibc] + + '@rollup/rollup-linux-loong64-musl@4.64.9': + resolution: {integrity: sha512-lhARcOT6n7Ni9hpQRq8LZjbuoW+G/GXaW4Jfhx2MbmjnCj9XxLMRTceJIMpiMLQVWm+qxe7oq1sYvlIGOAW34Q==} + cpu: [loong64] + os: [linux] + libc: [musl] + + '@rollup/rollup-linux-ppc64-gnu@4.64.9': + resolution: {integrity: sha512-oORQzGxZ1oHghJwLdwc8Ni0SY9otILAeXsWdiImTF4F5HkWJUwh5s/269PF5tYILNC1z/3RwFsrgcHPguBcb0g==} + cpu: [ppc64] + os: [linux] + libc: [glibc] + + '@rollup/rollup-linux-ppc64-musl@4.64.9': + resolution: {integrity: sha512-J2JQHQt7oR1uutd2OSwbV2Qpb2LI5gggPolbkUwDe7vn/0dnduZ0w6EIbGnZUAw7uIKaMgfVylcH6V+Aov8kRA==} + cpu: [ppc64] + os: [linux] + libc: [musl] + + '@rollup/rollup-linux-riscv64-gnu@4.64.9': + resolution: {integrity: sha512-bWaKLrfzeQ9mOzJJxXbPgw2RH6VAaTJrb/60Tqf7YSMxubG8780Hzm7Us+D6qVW8QRGJYl4VUvVXxnRB0o9zvQ==} + cpu: [riscv64] + os: [linux] + libc: [glibc] + + '@rollup/rollup-linux-riscv64-musl@4.64.9': + resolution: {integrity: sha512-TFJyaCB9NsvSyvVGQgTSRD9XgxsAq99ivDDkt9KAySlrNW5Obsd1kQpvoCvBCOLq+JlJTjmtroLH0wp8M8mEsA==} + cpu: [riscv64] + os: [linux] + libc: [musl] + + '@rollup/rollup-linux-s390x-gnu@4.64.9': + resolution: {integrity: sha512-DvmOM5xz/wDnUJFVjqP32ahalxn7BDuvO25bpuFOrb50AIFCCcFPN4lWWUDD1c8Ddv9sMO9SXyqtOet8G8u9cQ==} + cpu: [s390x] + os: [linux] + libc: [glibc] + + '@rollup/rollup-linux-x64-gnu@4.64.9': + resolution: {integrity: sha512-aFzokHK3yE00mzAvKm/PY76OsOOTjvoTGE82Vp89iBDyD2wUBlV4ZsR2tWkRECTEFk6TC4Yc3zaEWjPqq1vstQ==} + cpu: [x64] + os: [linux] + libc: [glibc] + + '@rollup/rollup-linux-x64-musl@4.64.9': + resolution: {integrity: sha512-t/yMdeaaQUuNNpmT7taBmH2VvHzgT4YA/IaKVE3qVr4PYQemn/kmJkL4uG4UvTLcWXQd0MSoOa/3URYSWGmUEg==} + cpu: [x64] + os: [linux] + libc: [musl] + + '@rollup/rollup-openbsd-x64@4.64.9': + resolution: {integrity: sha512-4dnxKQ8GHARyjqAU87q5UWhywZTpIbR2VWhtACdC37GD1SGszmvb3TaBFVA4n+fnDHSKMut4ZJ63hVFwgnxVtg==} + cpu: [x64] + os: [openbsd] + + '@rollup/rollup-openharmony-arm64@4.64.9': + resolution: {integrity: sha512-1qdQj6IrNoR0xFvrCQHmhBXe9HMbBGNTFi+3n4jKMt2rTx4k0aeAdraZU4WDOMfL9tAwS8/TRSuquvNuPQ+Gpw==} + cpu: [arm64] + os: [openharmony] + + '@rollup/rollup-win32-arm64-msvc@4.64.9': + resolution: {integrity: sha512-yc1GSEHIYhKGN5WSaJc+eMy8bZvzcvAmflEgFh8L3xcy8dYxGmfrudyBnBFde9f6JzOa1kFqocF8BHaWybjQoA==} + cpu: [arm64] + os: [win32] + + '@rollup/rollup-win32-ia32-msvc@4.64.9': + resolution: {integrity: sha512-VzHGvosAkLIzrwqvSgJBPDmGFTF/yE8OtMT4H5z8pM1NA0NiPpvTYnUh+9xPd+d5oy/wqF317FmJ1I8Kk8pp0Q==} + cpu: [ia32] + os: [win32] + + '@rollup/rollup-win32-x64-gnu@4.64.9': + resolution: {integrity: sha512-FB77txy1PiAcJgG72nOLA6R0S3PRZahs8Spx0z2yseDUkoMmJcrQghiebJ2JHZ74cCOVlX/MYd4dUbJtJJ8fow==} + cpu: [x64] + os: [win32] + + '@rollup/rollup-win32-x64-msvc@4.64.9': + resolution: {integrity: sha512-IoIgQLpK1DbOcQf1vX+i5oe5LXypsCVb1j/mU6BLAbOGmXH4E+j4kMfgZRwPYUohVBurNyVMgIKVM5dR6xA0kA==} + cpu: [x64] + os: [win32] + + '@rushstack/node-core-library@5.25.1': + resolution: {integrity: sha512-ozoRDwIx3jStOYpx86rFyXH4SaUR+DVT6HubQ59avLplJkWXSm5InztYH7RrOzzq9PJXTdq9/+lKX06SfkLVsA==} + engines: {node: '>=20.9.0'} + peerDependencies: + '@types/node': '*' + peerDependenciesMeta: + '@types/node': + optional: true + + '@rushstack/problem-matcher@0.2.1': + resolution: {integrity: sha512-gulfhBs6n+I5b7DvjKRfhMGyUejtSgOHTclF/eONr8hcgF1APEDjhxIsfdUYYMzC3rvLwGluqLjbwCFZ8nxrog==} + peerDependencies: + '@types/node': '*' + peerDependenciesMeta: + '@types/node': + optional: true + + '@rushstack/rig-package@0.7.4': + resolution: {integrity: sha512-SHZdzc9b2ptUb5uvRWALtAceD/QKZ4UAnZjcaKviTMPmHBnW14gs7XDocn6sDv2EqgnxxFPFkpV7/I3cUijCbw==} + engines: {node: '>=20.9.0'} + + '@rushstack/terminal@0.24.7': + resolution: {integrity: sha512-o8J9nHOIwfYb0s0eG2WYhx7ed3YIvBXQHVFxYdXCmVdBOkTkdArJcgVzRS8ewUepmlic4nGgJPjKIVaNKSqEnA==} + engines: {node: '>=20.9.0'} + peerDependencies: + '@types/node': '*' + peerDependenciesMeta: + '@types/node': + optional: true + + '@rushstack/ts-command-line@5.3.17': + resolution: {integrity: sha512-pIwhWawZXAT0nTXwvcE/InQ7uaVAgSeIzILMb2mBrI01Hz1yEvxrhV2+DE2Fzux8aZY9OJTdLsI+sk9kZDuAJw==} + engines: {node: '>=20.9.0'} + + '@shikijs/core@2.5.0': + resolution: {integrity: sha512-uu/8RExTKtavlpH7XqnVYBrfBkUc20ngXiX9NSrBhOVZYv/7XQRKUyhtkeflY5QsxC0GbJThCerruZfsUaSldg==} + + '@shikijs/engine-javascript@2.5.0': + resolution: {integrity: sha512-VjnOpnQf8WuCEZtNUdjjwGUbtAVKuZkVQ/5cHy/tojVVRIRtlWMYVjyWhxOmIq05AlSOv72z7hRNRGVBgQOl0w==} + + '@shikijs/engine-oniguruma@2.5.0': + resolution: {integrity: sha512-pGd1wRATzbo/uatrCIILlAdFVKdxImWJGQ5rFiB5VZi2ve5xj3Ax9jny8QvkaV93btQEwR/rSz5ERFpC5mKNIw==} + + '@shikijs/langs@2.5.0': + resolution: {integrity: sha512-Qfrrt5OsNH5R+5tJ/3uYBBZv3SuGmnRPejV9IlIbFH3HTGLDlkqgHymAlzklVmKBjAaVmkPkyikAV/sQ1wSL+w==} + + '@shikijs/themes@2.5.0': + resolution: {integrity: sha512-wGrk+R8tJnO0VMzmUExHR+QdSaPUl/NKs+a4cQQRWyoc3YFbUzuLEi/KWK1hj+8BfHRKm2jNhhJck1dfstJpiw==} + + '@shikijs/transformers@2.5.0': + resolution: {integrity: sha512-SI494W5X60CaUwgi8u4q4m4s3YAFSxln3tzNjOSYqq54wlVgz0/NbbXEb3mdLbqMBztcmS7bVTaEd2w0qMmfeg==} + + '@shikijs/types@2.5.0': + resolution: {integrity: sha512-ygl5yhxki9ZLNuNpPitBWvcy9fsSKKaRuO4BAlMyagszQidxcpLAr0qiW/q43DtSIDxO6hEbtYLiFZNXO/hdGw==} + + '@shikijs/vscode-textmate@10.0.2': + resolution: {integrity: sha512-83yeghZ2xxin3Nj8z1NMd/NCuca+gsYXswywDy5bHvwlWL8tpTQmzGeUuHd9FC3E/SBEMvzJRwWEOz5gGes9Qg==} + + '@swc/helpers@0.5.23': + resolution: {integrity: sha512-5lSsMOTXURePglDfvuAQUqkGek9Hg2kksOYay2m0+XR++b2NWYL/4sWyuvVBIs8oKnJaxkdi9whaL/sqN13afw==} + + '@tabler/icons-vue@3.49.0': + resolution: {integrity: sha512-p/g2/aVsUTdGaLwgV+X/E3vc+j8XkXWV2NgXAVT31/6sMf/CFAI3uvJ1r6YCi/UT8U2ctaF5fXUWr18bNVVr7g==} + peerDependencies: + vue: '>=3.0.1' + + '@tabler/icons@3.49.0': + resolution: {integrity: sha512-l+GnSkFETx0U26icxv1VUFnxxiTqXfCcVRiRAnyMwibupM2S2L/hSaZ9gmSgz01rkrsH/93NvLsxykqdanc6lw==} + + '@tailwindcss/node@4.3.3': + resolution: {integrity: sha512-/T8IKEsf9VTU6tLjgC7+sv2mOPtQxzE2jMw7u4Tt40Tx+QSZxpzh95/H6cMKoja9XuW7iMdLJYBB0o9G1CaAgg==} + + '@tailwindcss/oxide-android-arm64@4.3.3': + resolution: {integrity: sha512-Y85A2gmPSkl5Ve5qR86GL4HT509cFqQh1aes9p3sSkyTPwt0Pppf3GkwGe4JPACcRYjgJIEhQgM6dBClnr0NYw==} + engines: {node: '>= 20'} + cpu: [arm64] + os: [android] + + '@tailwindcss/oxide-darwin-arm64@4.3.3': + resolution: {integrity: sha512-BiaWatpBcERQFDlOjRDpIVXuFK5PJez5SA4JMg6VYZdBYU+qKfV/vqjcIs+IYmtitf1xYQZTwXvU/8y4lfZUGw==} + engines: {node: '>= 20'} + cpu: [arm64] + os: [darwin] + + '@tailwindcss/oxide-darwin-x64@4.3.3': + resolution: {integrity: sha512-fAeUqfV5ndhxRwai8cXGzdLvul9utWOmeTkv69unv4ZXixjn61Z+p9lCWdwOwA3TYboG3BwdVuN/RDjhBRl0mw==} + engines: {node: '>= 20'} + cpu: [x64] + os: [darwin] + + '@tailwindcss/oxide-freebsd-x64@4.3.3': + resolution: {integrity: sha512-iyf5bV6+wnAlflVeEy7R25dupxTNECZN5QMI0qNT6eT+EgaGdZcKhGkr5SdoaWiLJ3spLqIY9VCeSGrwmtg4kw==} + engines: {node: '>= 20'} + cpu: [x64] + os: [freebsd] + + '@tailwindcss/oxide-linux-arm-gnueabihf@4.3.3': + resolution: {integrity: sha512-aAYUprJAJQWWbRrPvtjdroZ56Md+JM8pMiopS6xGEwDfLhqj+2ver2p4nU4Mb3CRqcMmNBjo8KkUgcxhkzVQGQ==} + engines: {node: '>= 20'} + cpu: [arm] + os: [linux] + + '@tailwindcss/oxide-linux-arm64-gnu@4.3.3': + resolution: {integrity: sha512-nDxldcEENOxZRzC2uu9jrutZdAAQtb+8WWDCSnWL1zvBk1+FN+x6MtDViPB5AJMfttVCUhehGWus3XBPgatM/w==} + engines: {node: '>= 20'} + cpu: [arm64] + os: [linux] + libc: [glibc] + + '@tailwindcss/oxide-linux-arm64-musl@4.3.3': + resolution: {integrity: sha512-Md44bD6veX/PC5iyF8cDVnw4HBIANZepRZZ7a8DQOvkfo5WUBwcp6iAuCUz23u+4SUkhJlD3eL7hNdW8ezd/kA==} + engines: {node: '>= 20'} + cpu: [arm64] + os: [linux] + libc: [musl] + + '@tailwindcss/oxide-linux-x64-gnu@4.3.3': + resolution: {integrity: sha512-tx7us1muwOKAKWao2v/GaafFeQboE6aj88vC6ziN2NCGcRm8gWUhwjzg+YdVB1e4boAtdtma4L43onunI6NS4w==} + engines: {node: '>= 20'} + cpu: [x64] + os: [linux] + libc: [glibc] + + '@tailwindcss/oxide-linux-x64-musl@4.3.3': + resolution: {integrity: sha512-SJxX60smvHgasZoBy11dX6YRjXJFovwWBoedhbQPOBzgFWBHGB+TVPWB9BxzR7TTxU8FQZAI2AyiNCMzFm8Img==} + engines: {node: '>= 20'} + cpu: [x64] + os: [linux] + libc: [musl] + + '@tailwindcss/oxide-wasm32-wasi@4.3.3': + resolution: {integrity: sha512-jx1+rPhY/5Ympkktd656HBWEBLxP7dH06losBLjjf5vgCODXvi9KhtftWcMIwTFIDqBr7cRnQkdLnAG+IOlGvQ==} + engines: {node: '>=14.0.0'} + cpu: [wasm32] + bundledDependencies: + - '@napi-rs/wasm-runtime' + - '@emnapi/core' + - '@emnapi/runtime' + - '@tybys/wasm-util' + - '@emnapi/wasi-threads' + - tslib + + '@tailwindcss/oxide-win32-arm64-msvc@4.3.3': + resolution: {integrity: sha512-3rc292Ca2ceK6Ulcc/bAVnTs/3nDtoPhyEKlgPv+yQJQi/JS/AMJlqzxvlDacL1nekbrcf6bTqp/jV4qgnPxNQ==} + engines: {node: '>= 20'} + cpu: [arm64] + os: [win32] + + '@tailwindcss/oxide-win32-x64-msvc@4.3.3': + resolution: {integrity: sha512-yJ0pwIVc/nYeGoV02WtsN8KYyLQv7kyI2wDnkezyJlGGjkd4QLwDGAwl47YpPJeuI0M0ObaXGSPjvWDPeTPggw==} + engines: {node: '>= 20'} + cpu: [x64] + os: [win32] + + '@tailwindcss/oxide@4.3.3': + resolution: {integrity: sha512-krXjAikiaFSPaK/FkAQT5UTx3VormQaiZ5hBFlJZ9UFQGB/rwg1MZIhHAG9smMQRTdyJxP6Qt5MwMtdyU5FWrA==} + engines: {node: '>= 20'} + + '@tailwindcss/vite@4.3.3': + resolution: {integrity: sha512-yYU8cogLeSh/ms2jh8Fj7jaba/EWa7Ja6GoUqYZaraEuCI5YS6ms6ObZgjjedm+jm6XZjdNRWBpPP6Z86oOxcw==} + peerDependencies: + vite: ^5.2.0 || ^6 || ^7 || ^8 + + '@tanstack/virtual-core@3.19.6': + resolution: {integrity: sha512-CsTW892z23gy7IyxYTTorVu1uZWB+0N349rSMgKz4rFLPpLza7F7TpcCKeI5iUAwYQCt8QUlOU67J+KXCxtpGw==} + + '@tanstack/vue-virtual@3.13.47': + resolution: {integrity: sha512-6HzdYK9bDyDoD9Q/NjepnC4wGDaZ7mFl5zz8tbn3Fmy7FDicI98ZJ+R37ztFssnoTMoCQhY3GfUhlz+pW/vOTg==} + peerDependencies: + vue: ^2.7.0 || ^3.0.0 + + '@types/argparse@1.0.38': + resolution: {integrity: sha512-ebDJ9b0e702Yr7pWgB0jzm+CX4Srzz8RcXtLJDJB+BSccqMa36uyH/zUsSYao5+BD1ytv3k3rPYCq4mAE1hsXA==} + + '@types/chai@5.2.3': + resolution: {integrity: sha512-Mw558oeA9fFbv65/y4mHtXDs9bPnFMZAL/jxdPFUpOHHIXX91mcgEHbS5Lahr+pwZFR8A7GQleRWeI6cGFC2UA==} + + '@types/deep-eql@4.0.2': + resolution: {integrity: sha512-c9h9dVVMigMPc4bwTvC5dxqtqJZwQPePsWjPlpSOnojbor6pGqdk541lfA7AqFQr5pB1BRdq0juY9db81BwyFw==} + + '@types/estree@1.0.9': + resolution: {integrity: sha512-GhdPgy1el4/ImP05X05Uw4cw2/M93BCUmnEvWZNStlCzEKME4Fkk+YpoA5OiHNQmoS7Cafb8Xa3Pya8m1Qrzeg==} + + '@types/hast@3.0.5': + resolution: {integrity: sha512-rp/ezSWaD1m44dPKICGhiskI13nVr7qTloFwDa/IYkhhf5nzwP+zIQcIJh3WIFSBOy/H1PzB40jPjMDksN4F+g==} + + '@types/linkify-it@5.0.0': + resolution: {integrity: sha512-sVDA58zAw4eWAffKOaQH5/5j3XeayukzDk+ewSsnv3p4yJEZHCCzMDiZM8e0OUrRvmpGZ85jf4yDHkHsgBNr9Q==} + + '@types/markdown-it@14.2.0': + resolution: {integrity: sha512-NoQ2yGlLWj4wpxMs+TYmRKk3thDrQ97agr7sFqfLsAlvoS8SNQuTrlObhFqG9iugdTtgOE9jpJ6FNM4ZGsa5xQ==} + + '@types/mdast@4.0.4': + resolution: {integrity: sha512-kGaNbPh1k7AFzgpud/gMdvIm5xuECykRR+JnWKQno9TAXVa6WIVCGTPvYGekIDL4uwCZQSYbUxNBSb1aUo79oA==} + + '@types/mdurl@2.0.0': + resolution: {integrity: sha512-RGdgjQUZba5p6QEFAVx2OGb8rQDL/cPRG7GiedRzMcJ1tYnUANBncjbSB1NRGwbvjcPeikRABz2nshyPk1bhWg==} + + '@types/node@22.20.5': + resolution: {integrity: sha512-U2+DNr+wSjpsTS/wZGYHq7GcwfuSmKiKvoPvK22zwTlRhU91yOniN4qRR5KhIjvif7ysw/dz/hKmfDH0Ris4aA==} + + '@types/unist@3.0.3': + resolution: {integrity: sha512-ko/gIFJRv177XgZsZcBwnqJN5x/Gien8qNOn0D5bQU/zAzVf9Zt3BlcUiLqhV9y4ARk0GbT3tnUiPNgnTXzc/Q==} + + '@types/web-bluetooth@0.0.21': + resolution: {integrity: sha512-oIQLCGWtcFZy2JW77j9k8nHzAOpqMHLQejDA48XXMWH6tjCQHz5RCFz1bzsmROyL6PUm+LLnUiI4BCn221inxA==} + + '@ungap/structured-clone@1.4.0': + resolution: {integrity: sha512-1mEZtMKPM09vDmQt5y7YvmN2+DFTP7Tg0EWXdic8/C6VRnpb33e4ghisCIE3WZjsE2N8mf+QV1Zqh7ZFYLWInQ==} + + '@vitejs/plugin-vue@5.2.4': + resolution: {integrity: sha512-7Yx/SXSOcQq5HiiV3orevHUFn+pmMB4cgbEkDYgnkUWb0WfeQ/wa2yFv6D5ICiCQOVpjA7vYDXrC7AGO8yjDHA==} + engines: {node: ^18.0.0 || >=20.0.0} + peerDependencies: + vite: ^5.0.0 || ^6.0.0 + vue: ^3.2.25 + + '@vitejs/plugin-vue@6.0.10': + resolution: {integrity: sha512-b80aUQh3n+qEzzZm5oQp3rT2QImeCx58K6eFl/RkJ3d65KW0kTuv5lNsLRVAjbW9YRUpo/wzmvzMgV34bTAItA==} + engines: {node: ^20.19.0 || >=22.12.0} + peerDependencies: + vite: ^5.0.0 || ^6.0.0 || ^7.0.0 || ^8.0.0 + vue: ^3.2.25 || ^3.6.0-rc.10 + + '@vitest/expect@3.2.7': + resolution: {integrity: sha512-E8eBXaKibuvH2pSZErOjdVb5vF4PbKYcrnluBTYxEk1l/VhhwZg1kZQsdtjq+CsF5CFydf2Rdkz7jDHKSisi3w==} + + '@vitest/mocker@3.2.7': + resolution: {integrity: sha512-Trr0hYO9CM3Wj6ksWHRhK9IZpIY6wTMO5u/MqXurMxT57sWBaOPEtP3Oq60ihZuh5JsiagKfz95OcxdEP6dBrA==} + peerDependencies: + msw: ^2.4.9 + vite: ^5.0.0 || ^6.0.0 || ^7.0.0-0 + peerDependenciesMeta: + msw: + optional: true + vite: + optional: true + + '@vitest/pretty-format@3.2.7': + resolution: {integrity: sha512-KUHlwqVu0sRlhCdyPdQ/wBoTfRahjUky1MubOmYw9fWfIZy1gNoHpuaaQBPAaMaVYdQYHJLurzj8ECCj5OwTqA==} + + '@vitest/runner@3.2.7': + resolution: {integrity: sha512-sB9y4ovltoQP+WaUPwmSxO9WIg9Ig694Di5PalVPsYHklAdE027mehpWF2SQSVq+k6sFgaivbTjTJwZLSHbedA==} + + '@vitest/snapshot@3.2.7': + resolution: {integrity: sha512-7C+MwShwtBSI5Buwoyg3s/iY1eHL9PKAf+O1wVh/TdnjXUtkoL/9YQtre90i4MtNXM6edP1wJ2zOBpfCyhIS7g==} + + '@vitest/spy@3.2.7': + resolution: {integrity: sha512-Q2eQGI6d2L/hBtZ0qNuKcAGid68XK6cv1xsoaIma6PaJhHPoqcEJhYpXZ/5myCMqkNgtP6UKuBhbc0nHKnrkuQ==} + + '@vitest/utils@3.2.7': + resolution: {integrity: sha512-x6BDOd7dyo3PFLY3I9/HJ25X/6OurhGXk2/B9gOZNPF7XDVjeBK4k01lQE5uvDpbuheErh91qYuE1E2OEjK3Rw==} + + '@volar/language-core@2.4.28': + resolution: {integrity: sha512-w4qhIJ8ZSitgLAkVay6AbcnC7gP3glYM3fYwKV3srj8m494E3xtrCv6E+bWviiK/8hs6e6t1ij1s2Endql7vzQ==} + + '@volar/source-map@2.4.28': + resolution: {integrity: sha512-yX2BDBqJkRXfKw8my8VarTyjv48QwxdJtvRgUpNE5erCsgEUdI2DsLbpa+rOQVAJYshY99szEcRDmyHbF10ggQ==} + + '@volar/typescript@2.4.28': + resolution: {integrity: sha512-Ja6yvWrbis2QtN4ClAKreeUZPVYMARDYZl9LMEv1iQ1QdepB6wn0jTRxA9MftYmYa4DQ4k/DaSZpFPUfxl8giw==} + peerDependencies: + typescript: '*' + peerDependenciesMeta: + typescript: + optional: true + + '@vue/compiler-core@3.5.44': + resolution: {integrity: sha512-k34nCytbK8PQ1gR2mGROYOw6Pnv/mumqIdrZ3x2tbyXZDWm7ViKGLTfdB+DRrWqEQsLgGJvn0WN9jBif5zCTLQ==} + + '@vue/compiler-dom@3.5.44': + resolution: {integrity: sha512-W5AoBFWdw1lQAKiHowkfgFKFab82oSRT6sGsPfw/q1GRjsy/ZJFLHGhJyBRIFN9APLTUduDH9U2JAiPOIyKuYg==} + + '@vue/compiler-sfc@3.5.44': + resolution: {integrity: sha512-dzHmQ4jXTpdr5FjIQUeykVakN/uzqFbUo9/C5ikBFg3a3PeM6uRxeczx1ZbXBML0/zJstEh3ygYipzR5Z7b2Pw==} + + '@vue/compiler-ssr@3.5.44': + resolution: {integrity: sha512-xr5gb1JVHlfXJwSlRz1FeP6uxoazdzHuMTVLE7up+4Vrqxk219CvxLPxD9NXBt47yvZW7+p4DXfyp4O1fkByIA==} + + '@vue/compiler-vue2@2.7.16': + resolution: {integrity: sha512-qYC3Psj9S/mfu9uVi5WvNZIzq+xnXMhOwbTFKKDD7b1lhpnn71jXSFdTQ+WsIEk0ONCd7VV2IMm7ONl6tbQ86A==} + + '@vue/devtools-api@7.7.10': + resolution: {integrity: sha512-KxtEpUOOpFz/qOGRrAwA36QF7DqIA+FXgCYit9mk9wjbaZt0sXOFz81ElOZtKA4HbWHUdwNjZHBFsFFyp5BZiA==} + + '@vue/devtools-kit@7.7.10': + resolution: {integrity: sha512-3WNi2Kq4tbpVbmhml7RiphmAt0279oh3fKNeWMQIrltfX8Q91b4i5PL8DtyNKdwmcsGrV4fg+erwWOmD05CLIw==} + + '@vue/devtools-shared@7.7.10': + resolution: {integrity: sha512-wOPslzB8vTvpxwdaOcR2qAbwmuSP0L+rhpoC6Cf56V3Jip+HWb7PQQXOUPgBNQARpXsbQX/+mvi8kKucmBGRwQ==} + + '@vue/language-core@2.2.0': + resolution: {integrity: sha512-O1ZZFaaBGkKbsRfnVH1ifOK1/1BUkyK+3SQsfnh6PmMmD4qJcTU8godCeA96jjDRTL6zgnK7YzCHfaUlH2r0Mw==} + peerDependencies: + typescript: '*' + peerDependenciesMeta: + typescript: + optional: true + + '@vue/language-core@3.3.13': + resolution: {integrity: sha512-axA0Xemn5LuUKuKWob0/kVq7xQ2mJJM6VqA9Exvt35nM9yRC31goWVve/G/Zb2ZCLsXC8FHYjjfXlnshknSCew==} + + '@vue/reactivity@3.5.44': + resolution: {integrity: sha512-u+QJdKeBBEADkPdevsL+6E12QlYVfBD8Zcw5qjDQKtamI6l14KyqazJMobhCKelhWN5zpyKUiEDoTyHE93cqWw==} + + '@vue/runtime-core@3.5.44': + resolution: {integrity: sha512-uEa/ndwjhrrhnOfb2p+sZy6zeoamJOISqaLSJGk/8R6nABT1ZldpzcJoPzKj+zHVomVBPcmQYyC2r4LtvDV6CQ==} + + '@vue/runtime-dom@3.5.44': + resolution: {integrity: sha512-3fc4ARcXVhVBaJ3ujWiNZJARD6pkyRcwG+ZYhMzjKtKUp7MAY0HLwr7r3Smep3Li6ZaWT6ewdmx8XqdaD5oNZg==} + + '@vue/server-renderer@3.5.44': + resolution: {integrity: sha512-R4S1UoH4h5Frrauv8Z5XE5TxV9oBiUSgWIC4TyVK1FK+RocRnOLwFA5Xcmo2011RlgJp+AbZCnw6afrhlgRuUQ==} + + '@vue/shared@3.5.44': + resolution: {integrity: sha512-H82XLH0DjmSOdbEwO15x3QTo1f5PWEtv237eLpYKc0mqLu+B8hnq16lFWmuBmNurkeiG3wr+oM1FhOll/YVFRg==} + + '@vue/test-utils@2.5.1': + resolution: {integrity: sha512-V/4a99odJ7hapr0bRt35XxljGk8hefq31gSOnlKTcEq2fUeoj2qb+FcpJYfQu4qfYhW9Ug+O2+CZ3QmZ7gXDzA==} + peerDependencies: + '@vue/compiler-dom': 3.x + '@vue/server-renderer': 3.x + vue: 3.x + peerDependenciesMeta: + '@vue/server-renderer': + optional: true + + '@vueuse/core@12.8.2': + resolution: {integrity: sha512-HbvCmZdzAu3VGi/pWYm5Ut+Kd9mn1ZHnn4L5G8kOQTPs/IwIAmJoBrmYk2ckLArgMXZj0AW3n5CAejLUO+PhdQ==} + + '@vueuse/core@14.4.0': + resolution: {integrity: sha512-X4WHz1HlCzCBoYXesUkifzzWBAcZgXG8Fi5iNPQg/epdzOB3gu8Fawj3hvuwYR1nGcXGnvxwYYcUC/71++svtQ==} + peerDependencies: + vue: ^3.5.0 + + '@vueuse/integrations@12.8.2': + resolution: {integrity: sha512-fbGYivgK5uBTRt7p5F3zy6VrETlV9RtZjBqd1/HxGdjdckBgBM4ugP8LHpjolqTj14TXTxSK1ZfgPbHYyGuH7g==} + peerDependencies: + async-validator: ^4 + axios: ^1 + change-case: ^5 + drauu: ^0.4 + focus-trap: ^7 + fuse.js: ^7 + idb-keyval: ^6 + jwt-decode: ^4 + nprogress: ^0.2 + qrcode: ^1.5 + sortablejs: ^1 + universal-cookie: ^7 + peerDependenciesMeta: + async-validator: + optional: true + axios: + optional: true + change-case: + optional: true + drauu: + optional: true + focus-trap: + optional: true + fuse.js: + optional: true + idb-keyval: + optional: true + jwt-decode: + optional: true + nprogress: + optional: true + qrcode: + optional: true + sortablejs: + optional: true + universal-cookie: + optional: true + + '@vueuse/metadata@12.8.2': + resolution: {integrity: sha512-rAyLGEuoBJ/Il5AmFHiziCPdQzRt88VxR+Y/A/QhJ1EWtWqPBBAxTAFaSkviwEuOEZNtW8pvkPgoCZQ+HxqW1A==} + + '@vueuse/metadata@14.4.0': + resolution: {integrity: sha512-swx/255R6JyHZFJhx845iz5CRWDZdCfvkZOpACWc5+c5WHcG24mv8gUT1WIdFQaHt6dq79rvILd9QnCWiyVm9g==} + + '@vueuse/shared@12.8.2': + resolution: {integrity: sha512-dznP38YzxZoNloI0qpEfpkms8knDtaoQ6Y/sfS0L7Yki4zh40LFHEhur0odJC6xTHG5dxWVPiUWBXn+wCG2s5w==} + + '@vueuse/shared@14.4.0': + resolution: {integrity: sha512-JRgY90Sz8DDtPMsaDflvPMp9xYk69JZAmbuDvAquUVXKr2gEjqtzGNTTthLfckH0BzBqvnu31gb4a8TGLRe79g==} + peerDependencies: + vue: ^3.5.0 + + abbrev@5.0.0: + resolution: {integrity: sha512-/XrFJgzQQQHpti1raDJC6m4ws6aNktmjBlhk8Fdlk7LwCEuDoieEJJY9OFHjfiFJFFRM2tK+Ky/IsfbbmlMu1w==} + engines: {node: ^22.22.2 || ^24.15.0 || >=26.0.0} + + acorn@8.19.0: + resolution: {integrity: sha512-oJlA3XiRm7Cyk6qFD2Jn8ak9B7jSy0qy00ADO3+8dpT0LSjFihQYv4C02LFCSYJV3Q37xYwwRy5m+IpIiUzqWw==} + engines: {node: '>=0.4.0'} + hasBin: true + + agent-base@7.1.4: + resolution: {integrity: sha512-MnA+YT8fwfJPgBx3m60MNqakm30XOkyIoH1y6huTQvC0PwZG7ki8NacLBcrPbNoo8vEZy7Jpuk7+jMO+CUovTQ==} + engines: {node: '>= 14'} + + ajv-draft-04@1.0.0: + resolution: {integrity: sha512-mv00Te6nmYbRp5DCwclxtt7yV/joXJPGS7nM+97GdxvuttCOfgI3K4U25zboyeX0O+myI8ERluxQe5wljMmVIw==} + peerDependencies: + ajv: ^8.5.0 + peerDependenciesMeta: + ajv: + optional: true + + ajv-formats@3.0.1: + resolution: {integrity: sha512-8iUql50EUR+uUcdRQ3HDqa6EVyo3docL8g5WJ3FNcWmu62IbkGUue/pEyLBW8VGKKucTPgqeks4fIU1DA4yowQ==} + peerDependencies: + ajv: ^8.0.0 + peerDependenciesMeta: + ajv: + optional: true + + ajv@8.18.0: + resolution: {integrity: sha512-PlXPeEWMXMZ7sPYOHqmDyCJzcfNrUr3fGNKtezX14ykXOEIvyK81d+qydx89KY5O71FKMPaQ2vBfBFI5NHR63A==} + + ajv@8.20.0: + resolution: {integrity: sha512-Thbli+OlOj+iMPYFBVBfJ3OmCAnaSyNn4M1vz9T6Gka5Jt9ba/HIR56joy65tY6kx/FCF5VXNB819Y7/GUrBGA==} + + algoliasearch@5.60.0: + resolution: {integrity: sha512-LKEMSE7DDZ67w/2dp0wIROAMIejT6I+UESIbu+IjPVKHkgxzag08xU3zVvvJhWGWL2T3B+e3Ai8fqYG5UHKTGA==} + engines: {node: '>= 14.0.0'} + + alien-signals@0.4.14: + resolution: {integrity: sha512-itUAVzhczTmP2U5yX67xVpsbbOiquusbWVyA9N+sy6+r6YVbFkahXvNCeEPWEOMhwDYwbVbGHFkVL03N9I5g+Q==} + + alien-signals@3.2.1: + resolution: {integrity: sha512-I8FjmltrfnDFoZedi5CG8DghVYNhzb/Ijluz7tCSJH0xpd0484Kowhbb1XDYOxfJpU1p5wnM2X54dA+IfGyD1g==} + + argparse@1.0.10: + resolution: {integrity: sha512-o5Roy6tNG4SL/FOkCAN6RzjiakZS25RLYFrcMttJqbdd8BWrnA+fGz57iN5Pb06pvBGvl5gQ0B48dJlslXvoTg==} + + aria-hidden@1.2.6: + resolution: {integrity: sha512-ik3ZgC9dY/lYVVM++OISsaYDeg1tb0VtP5uL3ouh1koGOaUMDPpbFIei4JkFimWUFPn90sbMNMXQAIVOlnYKJA==} + engines: {node: '>=10'} + + assertion-error@2.0.1: + resolution: {integrity: sha512-Izi8RQcffqCeNVgFigKli1ssklIbpHnCYc6AknXGYoB6grJqyeby7jv12JUQgmTAnIDnbck1uxksT4dzN3PWBA==} + engines: {node: '>=12'} + + balanced-match@1.0.2: + resolution: {integrity: sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==} + + balanced-match@4.0.4: + resolution: {integrity: sha512-BLrgEcRTwX2o6gGxGOCNyMvGSp35YofuYzw9h1IMTRmKqttAZZVU67bdb9Pr2vUHA8+j3i2tJfjO6C6+4myGTA==} + engines: {node: 18 || 20 || >=22} + + birpc@2.9.0: + resolution: {integrity: sha512-KrayHS5pBi69Xi9JmvoqrIgYGDkD6mcSe/i6YKi3w5kekCLzrX4+nawcXqrj2tIp50Kw/mT/s3p+GVK0A0sKxw==} + + brace-expansion@2.1.7: + resolution: {integrity: sha512-uZbew1NqdmPDTMJ8ah1y+b+9QEJrfkXFk3RcTQw3X0jW/xRUvFKsg1CfQdSYGdTbXZWExtU3J3ccxtnfw1Fi0g==} + + brace-expansion@5.0.12: + resolution: {integrity: sha512-YovQ3rzhaLMIrDjNDMkNS01tea93qhEhG5xy8f6+R0l+dw3Ki+5sCoIoI942iuLZTHWogWktgwVDhU09iNEimQ==} + engines: {node: 20 || >=22} + + cac@6.7.14: + resolution: {integrity: sha512-b6Ilus+c3RrdDk+JhLKUAQfzzgLEPy6wcXqS7f/xe1EETvsDP6GORG7SFuOs6cID5YkqchW/LXZbX5bc8j7ZcQ==} + engines: {node: '>=8'} + + ccount@2.0.1: + resolution: {integrity: sha512-eyrF0jiFpY+3drT6383f1qhkbGsLSifNAjA61IUjZjmLCWjItY6LB9ft9YhoDgwfmclB2zhu51Lc7+95b8NRAg==} + + chai@5.3.3: + resolution: {integrity: sha512-4zNhdJD/iOjSH0A05ea+Ke6MU5mmpQcbQsSOkgdaUMJ9zTlDTD/GYlwohmIE2u0gaxHYiVHEn1Fw9mZ/ktJWgw==} + engines: {node: '>=18'} + + character-entities-html4@2.1.0: + resolution: {integrity: sha512-1v7fgQRj6hnSwFpq1Eu0ynr/CDEw0rXo2B61qXrLNdHZmPKgb7fqS1a2JwF0rISo9q77jDI8VMEHoApn8qDoZA==} + + character-entities-legacy@3.0.0: + resolution: {integrity: sha512-RpPp0asT/6ufRm//AJVwpViZbGM/MkjQFxJccQRHmISF/22NBtsHqAWmL+/pmkPWoIUJdWyeVleTl1wydHATVQ==} + + check-error@2.1.3: + resolution: {integrity: sha512-PAJdDJusoxnwm1VwW07VWwUN1sl7smmC3OKggvndJFadxxDRyFJBX/ggnu/KE4kQAB7a3Dp8f/YXC1FlUprWmA==} + engines: {node: '>= 16'} + + comma-separated-tokens@2.0.3: + resolution: {integrity: sha512-Fu4hJdvzeylCfQPp9SGWidpzrMs7tTrlu6Vb8XGaRGck8QSNZJJp538Wrb60Lax4fPwR64ViY468OIUTbRlGZg==} + + commander@14.0.3: + resolution: {integrity: sha512-H+y0Jo/T1RZ9qPP4Eh1pkcQcLRglraJaSLoyOtHxu6AapkjWVCy2Sit1QQ4x3Dng8qDlSsZEet7g5Pq06MvTgw==} + engines: {node: '>=20'} + + compare-versions@6.1.1: + resolution: {integrity: sha512-4hm4VPpIecmlg59CHXnRDnqGplJFrbLG4aFEl5vl6cK1u76ws3LLvX7ikFnTDl5vo39sjWD6AaDPYodJp/NNHg==} + + confbox@0.1.8: + resolution: {integrity: sha512-RMtmw0iFkeR4YV+fUOSucriAQNb9g8zFR52MWCtl+cCZOFRNL6zeB395vPzFhEjjn4fMxXudmELnl/KF/WrK6w==} + + confbox@0.3.1: + resolution: {integrity: sha512-cKUSoKa8YxFZZSmraVi7onONx3amu77ngK3kGpsYHDH7drPwCRkQE1RYMPlLRrMtnciRj274XNRxcHxnKmDSnA==} + + config-chain@1.1.13: + resolution: {integrity: sha512-qj+f8APARXHrM0hraqXYb2/bOVSV4PvJQlNZ/DVj0QrmNM2q2euizkeuVckQ57J+W0mRH6Hvi+k50M4Jul2VRQ==} + + copy-anything@4.1.5: + resolution: {integrity: sha512-vePst2VLTSqPglW7Q98VwFpGiGpOHTyXIo81MO5VyLecA5zMbZw/P/V1vmwD1jksa2iJpn/YkDrJ3XhTfzUyhQ==} + engines: {node: '>=18'} + + cssstyle@4.6.0: + resolution: {integrity: sha512-2z+rWdzbbSZv6/rhtvzvqeZQHrBaqgogqt85sqFNbabZOuFbCVFb8kPeEtZjiKkbrm395irpNKiYeFeLiQnFPg==} + engines: {node: '>=18'} + + csstype@3.2.3: + resolution: {integrity: sha512-z1HGKcYy2xA8AGQfwrn0PAy+PB7X/GSj3UVJW9qKyn43xWa+gl5nXmU4qqLMRzWVLFC8KusUX8T/0kCiOYpAIQ==} + + data-urls@5.0.0: + resolution: {integrity: sha512-ZYP5VBHshaDAiVZxjbRVcFJpc+4xGgT0bK3vzy1HLN8jTO975HEbuYzZJcHoQEY5K1a0z8YayJkyVETa08eNTg==} + engines: {node: '>=18'} + + de-indent@1.0.2: + resolution: {integrity: sha512-e/1zu3xH5MQryN2zdVaF0OrdNLUbvWxzMbi+iNA6Bky7l1RoP8a2fIbRocyHclXt/arDrrR6lL3TqFD9pMQTsg==} + + debug@4.4.3: + resolution: {integrity: sha512-RGwwWnwQvkVfavKVt22FGLw+xYSdzARwm0ru6DhTVA3umU5hZc28V3kO4stgYryrTlLpuvgI9GiijltAjNbcqA==} + engines: {node: '>=6.0'} + peerDependencies: + supports-color: '*' + peerDependenciesMeta: + supports-color: + optional: true + + decimal.js@10.6.0: + resolution: {integrity: sha512-YpgQiITW3JXGntzdUmyUR1V812Hn8T1YVXhCu+wO3OpS4eU9l4YdD3qjyiKdV6mvV29zapkMeD390UVEf2lkUg==} + + deep-eql@5.0.2: + resolution: {integrity: sha512-h5k/5U50IJJFpzfL6nO9jaaumfjO/f2NjK/oYB2Djzm4p9L+3T9qWpZqZ2hAbLPuuYq9wrU08WQyBTL5GbPk5Q==} + engines: {node: '>=6'} + + defu@6.1.7: + resolution: {integrity: sha512-7z22QmUWiQ/2d0KkdYmANbRUVABpZ9SNYyH5vx6PZ+nE5bcC0l7uFvEfHlyld/HcGBFTL536ClDt3DEcSlEJAQ==} + + dequal@2.0.3: + resolution: {integrity: sha512-0je+qPKHEMohvfRTCEo3CrPG6cAzAYgmzKyxRiYSSDkS6eGJdyVJm7WaYA5ECaAD9wLB2T4EEeymA5aFVcYXCA==} + engines: {node: '>=6'} + + detect-libc@2.1.2: + resolution: {integrity: sha512-Btj2BOOO83o3WyH59e8MgXsxEQVcarkUOpEYrubB0urwnN10yQ364rsiByU11nZlqWYZm05i/of7io4mzihBtQ==} + engines: {node: '>=8'} + + devlop@1.1.0: + resolution: {integrity: sha512-RWmIqhcFf1lRYBvNmr7qTNuyCt/7/ns2jbpp1+PalgE/rDQcBT0fioSMUpJ93irlUhC5hrg4cYqe6U+0ImW0rA==} + + diff@8.0.4: + resolution: {integrity: sha512-DPi0FmjiSU5EvQV0++GFDOJ9ASQUVFh5kD+OzOnYdi7n3Wpm9hWWGfB/O2blfHcMVTL5WkQXSnRiK9makhrcnw==} + engines: {node: '>=0.3.1'} + + editorconfig@3.0.2: + resolution: {integrity: sha512-T0ix8GhtxyKVfUFEcvdNDt3YGqlwkFHbD4/5bgFUDgFmxhI/cSRAeJ87/Sz//Cq8Eam6JX/e23RkoFO71P7aAA==} + engines: {node: '>=20'} + hasBin: true + + emoji-regex-xs@1.0.0: + resolution: {integrity: sha512-LRlerrMYoIDrT6jgpeZ2YYl/L8EulRTt5hQcYjy5AInh7HWXKimpqx68aknBFpGL2+/IcogTcaydJEgaTmOpDg==} + + enhanced-resolve@5.26.0: + resolution: {integrity: sha512-9vhedylFonb2YGogzUKX6+Ja72gOJbN1QHAqdrvqLwhdl/QWbKopzoUC9EbQNVsAns/bx/4uyqalrQAoy1IByw==} + engines: {node: '>=10.13.0'} + + entities@6.0.1: + resolution: {integrity: sha512-aN97NXWF6AWBTahfVOIrB/NShkzi5H7F9r1s9mD3cDj4Ko5f2qhhVoYMibXF7GlLveb/D2ioWay8lxI97Ven3g==} + engines: {node: '>=0.12'} + + entities@7.0.1: + resolution: {integrity: sha512-TWrgLOFUQTH994YUyl1yT4uyavY5nNB5muff+RtWaqNVCAK408b5ZnnbNAUEWLTCpum9w6arT70i1XdQ4UeOPA==} + engines: {node: '>=0.12'} + + es-errors@1.3.0: + resolution: {integrity: sha512-Zf5H2Kxt2xjTvbJvP2ZWLEICxA6j+hAmMzIlypy4xcBg1vKVnx89Wy0GbS+kf5cwCVFFzdCFh2XSCFNULS6csw==} + engines: {node: '>= 0.4'} + + es-module-lexer@1.7.0: + resolution: {integrity: sha512-jEQoCwk8hyb2AZziIOLhDqpm5+2ww5uIE6lkO/6jcOCusfk6LhMHpXXfBLXTZ7Ydyt0j4VoUQv6uGNYbdW+kBA==} + + esbuild@0.21.5: + resolution: {integrity: sha512-mg3OPMV4hXywwpoDxu3Qda5xCKQi+vCTZq8S9J/EpkhB2HzKXq4SNFZE3+NK93JYxc8VMSep+lOUSC/RVKaBqw==} + engines: {node: '>=12'} + hasBin: true + + esbuild@0.28.2: + resolution: {integrity: sha512-HKVLS8dvII+xoKW9kmqxbRKrnWEXfJJr/FZhhJmiqIB0e053QNYFqOBouTMO/k5sID4MvCiUCvv8b9M4h32wIA==} + engines: {node: '>=18'} + hasBin: true + + estree-walker@2.0.2: + resolution: {integrity: sha512-Rfkk/Mp/DL7JVje3u18FxFujQlTNR2q6QfMSMB7AvCBx91NGj/ba3kCfza0f6dVDbw7YlRf/nDrn7pQrCCyQ/w==} + + estree-walker@3.0.3: + resolution: {integrity: sha512-7RUKfXgSMMkzt6ZuXmqapOurLGPPfgj6l9uRZ7lRGolvk0y2yocc35LdcxKC5PQZdn2DMqioAQ2NoWcrTKmm6g==} + + expect-type@1.4.0: + resolution: {integrity: sha512-KfYbmpRm0VbLjEvVa9yGwCi9GI34xvi7A/HXYWQO65CSD2u3MczUJSuwXKFIxlGsgBQizV9q5J9NHj4VG0n+pA==} + engines: {node: '>=12.0.0'} + + exsolve@1.1.3: + resolution: {integrity: sha512-kuzL9zherLQoqDeQaS55AiiIg1kb4KYXaSusTtgZTPlvKP2gGCI82LNmBNh5RjDVUXIcmgx+/Mx7vPwRzBbhJA==} + + fast-deep-equal@3.1.3: + resolution: {integrity: sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q==} + + fast-uri@3.1.8: + resolution: {integrity: sha512-GZMtZUTNRpOVIECoXwLNZS5xUGE+mVNbTB8h/7Rwh2TFWcBQiPzTgyZi05BF9UMZKkLJv8XBRJTlU7zg8+ZfMg==} + + fdir@6.5.0: + resolution: {integrity: sha512-tIbYtZbucOs0BRGqPJkshJUYdL+SDH7dVM8gjy+ERp3WAUjLEFJE+02kanyHtwjWOnwrKYBiwAmM0p4kLJAnXg==} + engines: {node: '>=12.0.0'} + peerDependencies: + picomatch: ^3 || ^4 + peerDependenciesMeta: + picomatch: + optional: true + + focus-trap@7.8.0: + resolution: {integrity: sha512-/yNdlIkpWbM0ptxno3ONTuf+2g318kh2ez3KSeZN5dZ8YC6AAmgeWz+GasYYiBJPFaYcSAPeu4GfhUaChzIJXA==} + + fs-extra@11.3.6: + resolution: {integrity: sha512-w8ZNZr2mKIc7qeNaQ9AVPT1+iFaI+Avd4xudVOvdDJ8VytREi1Ft5Ih7hd9jjehod8vAM5GMsfQ/TpPf4EyoEA==} + engines: {node: '>=14.14'} + + fsevents@2.3.3: + resolution: {integrity: sha512-5xoDfX+fL7faATnagmWPpbFtwh/R77WmMMqqHGS65C3vvB0YHrgF+B1YmZ3441tMj5n63k0212XNoJwzlhffQw==} + engines: {node: ^8.16.0 || ^10.6.0 || >=11.0.0} + os: [darwin] + + function-bind@1.1.2: + resolution: {integrity: sha512-7XHNxH7qX9xG5mIwxkhumTox/MIRNcOgDrxWsMt2pAr23WHp6MrRlN7FBSFpCpr+oVO0F744iUgR82nJMfG2SA==} + + glob@13.0.6: + resolution: {integrity: sha512-Wjlyrolmm8uDpm/ogGyXZXb1Z+Ca2B8NbJwqBVg0axK9GbBeoS7yGV6vjXnYdGm6X53iehEuxxbyiKp8QmN4Vw==} + engines: {node: 18 || 20 || >=22} + + graceful-fs@4.2.11: + resolution: {integrity: sha512-RbJ5/jmFcNNCcDV5o9eTnBLJ/HszWV0P73bc+Ff4nS/rJj+YaS6IGyiOL0VoBYX+l1Wrl3k63h/KrH+nhJ0XvQ==} + + has-flag@4.0.0: + resolution: {integrity: sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==} + engines: {node: '>=8'} + + hasown@2.0.4: + resolution: {integrity: sha512-T2UbfbBEF32wiepXIsMlTW9+dDYC6wMh/t/vYA4tuOMKqWz/n3vr1NFSxQiyP+zk2mXsoMA/i/7qV6LKut1t1A==} + engines: {node: '>= 0.4'} + + hast-util-to-html@9.0.5: + resolution: {integrity: sha512-OguPdidb+fbHQSU4Q4ZiLKnzWo8Wwsf5bZfbvu7//a9oTYoqD/fWpe96NuHkoS9h0ccGOTe0C4NGXdtS0iObOw==} + + hast-util-whitespace@3.0.0: + resolution: {integrity: sha512-88JUN06ipLwsnv+dVn+OIYOvAuvBMy/Qoi6O7mQHxdPXpjy+Cd6xRkWwux7DKO+4sYILtLBRIKgsdpS2gQc7qw==} + + he@1.2.0: + resolution: {integrity: sha512-F/1DnUGPopORZi0ni+CvrCgHQ5FyEAHRLSApuYWMmrbSwoN2Mn/7k+Gl38gJnR7yyDZk6WLXwiGod1JOWNDKGw==} + hasBin: true + + hookable@5.5.3: + resolution: {integrity: sha512-Yc+BQe8SvoXH1643Qez1zqLRmbA5rCL+sSmk6TVos0LWVfNIB7PGncdlId77WzLGSIB5KaWgTaNTs2lNVEI6VQ==} + + html-encoding-sniffer@4.0.0: + resolution: {integrity: sha512-Y22oTqIU4uuPgEemfz7NDJz6OeKf12Lsu+QC+s3BVpda64lTiMYCyGwg5ki4vFxkMwQdeZDl2adZoqUgdFuTgQ==} + engines: {node: '>=18'} + + html-void-elements@3.0.0: + resolution: {integrity: sha512-bEqo66MRXsUGxWHV5IP0PUiAWwoEjba4VCzg0LjFJBpchPaTfyfCKTG6bc5F8ucKec3q5y6qOdGyYTSBEvhCrg==} + + http-proxy-agent@7.0.2: + resolution: {integrity: sha512-T1gkAiYYDWYx3V5Bmyu7HcfcvL7mUrTWiM6yOfa3PIphViJ/gFPbvidQ+veqSOHci/PxBcDabeUNCzpOODJZig==} + engines: {node: '>= 14'} + + https-proxy-agent@7.0.6: + resolution: {integrity: sha512-vK9P5/iUfdl95AI+JVyUuIcVtd4ofvtrOr3HNtM2yxC9bnMbEdp3x01OhQNnjb8IJYi38VlTE3mBXwcfvywuSw==} + engines: {node: '>= 14'} + + iconv-lite@0.6.3: + resolution: {integrity: sha512-4fCk79wshMdzMp2rH06qWrJE4iolqLhCUH+OiuIgU++RB0+94NlDL81atO7GX55uUKueo0txHNtvEyI6D7WdMw==} + engines: {node: '>=0.10.0'} + + import-lazy@4.0.0: + resolution: {integrity: sha512-rKtvo6a868b5Hu3heneU+L4yEQ4jYKLtjpnPeUdK7h0yzXGmyBTypknlkCvHFBqfX9YlorEiMM6Dnq/5atfHkw==} + engines: {node: '>=8'} + + ini@1.3.8: + resolution: {integrity: sha512-JV/yugV2uzW5iMRSiZAyDtQd+nxtUnjeLt0acNdw98kKLrvuRVyB80tsREOE7yvGVgalhZ6RNXCmEHkUKBKxew==} + + is-core-module@2.17.0: + resolution: {integrity: sha512-J/vG0zBCbIKOQFfufSwyXdMrsohyJIUNkrnmo6WZGzoM7tr/lsbfW5b2BvisL6zsyMzK9UxV9L6c7AoFbyXHOA==} + engines: {node: '>= 0.4'} + + is-potential-custom-element-name@1.0.1: + resolution: {integrity: sha512-bCYeRA2rVibKZd+s2625gGnGF/t7DSqDs4dP7CrLA1m7jKWz6pps0LpYLJN8Q64HtmPKJ1hrN3nzPNKFEKOUiQ==} + + jiti@2.7.0: + resolution: {integrity: sha512-AC/7JofJvZGrrneWNaEnJeOLUx+JlGt7tNa0wZiRPT4MY1wmfKjt2+6O2p2uz2+skll8OZZmJMNqeke7kKbNgQ==} + hasBin: true + + jju@1.4.0: + resolution: {integrity: sha512-8wb9Yw966OSxApiCt0K3yNJL8pnNeIv+OEq2YMidz4FKP6nonSRoOXc80iXY4JaN2FC11B9qsNmDsm+ZOfMROA==} + + js-beautify@2.0.3: + resolution: {integrity: sha512-cyFbh3tkPhknnTD/0bLf0T0yy2ZIbqL05mttzbt4y1Zfr7NxqXQZ62dkBLKs3oHH/lpjmDRAnciJiSUyOy8XwQ==} + engines: {node: '>=14'} + hasBin: true + + js-cookie@3.0.8: + resolution: {integrity: sha512-yeJd4aNAdYZQjaon2bpD/Gb0B/omw7HQOsynXXcOiWVCacbBcPlgn8S/d1X6blFSaHao7ozqtW7NZW19xpCtIw==} + + js-tokens@9.0.1: + resolution: {integrity: sha512-mxa9E9ITFOt0ban3j6L5MpjwegGz6lBQmM1IJkWeBZGcMxto50+eWdjC/52xDbS2vy0k7vIMK0Fe2wfL9OQSpQ==} + + jsdom@26.1.0: + resolution: {integrity: sha512-Cvc9WUhxSMEo4McES3P7oK3QaXldCfNWp7pl2NNeiIFlCoLr3kfq9kb1fxftiwk1FLV7CvpvDfonxtzUDeSOPg==} + engines: {node: '>=18'} + peerDependencies: + canvas: ^3.0.0 + peerDependenciesMeta: + canvas: + optional: true + + json-schema-traverse@1.0.0: + resolution: {integrity: sha512-NM8/P9n3XjXhIZn1lLhkFaACTOURQXjWhV4BA/RnOv8xvgqtqpAX9IO4mRQxSx1Rlo4tqzeqb0sOlruaOy3dug==} + + jsonfile@6.2.1: + resolution: {integrity: sha512-zwOTdL3rFQ/lRdBnntKVOX6k5cKJwEc1HdilT71BWEu7J41gXIB2MRp+vxduPSwZJPWBxEzv4yH1wYLJGUHX4Q==} + + kolorist@1.8.0: + resolution: {integrity: sha512-Y+60/zizpJ3HRH8DCss+q95yr6145JXZo46OTpFvDZWLfRCE4qChOyk1b26nMaNpfHHgxagk9dXT5OP0Tfe+dQ==} + + lightningcss-android-arm64@1.32.0: + resolution: {integrity: sha512-YK7/ClTt4kAK0vo6w3X+Pnm0D2cf2vPHbhOXdoNti1Ga0al1P4TBZhwjATvjNwLEBCnKvjJc2jQgHXH0NEwlAg==} + engines: {node: '>= 12.0.0'} + cpu: [arm64] + os: [android] + + lightningcss-darwin-arm64@1.32.0: + resolution: {integrity: sha512-RzeG9Ju5bag2Bv1/lwlVJvBE3q6TtXskdZLLCyfg5pt+HLz9BqlICO7LZM7VHNTTn/5PRhHFBSjk5lc4cmscPQ==} + engines: {node: '>= 12.0.0'} + cpu: [arm64] + os: [darwin] + + lightningcss-darwin-x64@1.32.0: + resolution: {integrity: sha512-U+QsBp2m/s2wqpUYT/6wnlagdZbtZdndSmut/NJqlCcMLTWp5muCrID+K5UJ6jqD2BFshejCYXniPDbNh73V8w==} + engines: {node: '>= 12.0.0'} + cpu: [x64] + os: [darwin] + + lightningcss-freebsd-x64@1.32.0: + resolution: {integrity: sha512-JCTigedEksZk3tHTTthnMdVfGf61Fky8Ji2E4YjUTEQX14xiy/lTzXnu1vwiZe3bYe0q+SpsSH/CTeDXK6WHig==} + engines: {node: '>= 12.0.0'} + cpu: [x64] + os: [freebsd] + + lightningcss-linux-arm-gnueabihf@1.32.0: + resolution: {integrity: sha512-x6rnnpRa2GL0zQOkt6rts3YDPzduLpWvwAF6EMhXFVZXD4tPrBkEFqzGowzCsIWsPjqSK+tyNEODUBXeeVHSkw==} + engines: {node: '>= 12.0.0'} + cpu: [arm] + os: [linux] + + lightningcss-linux-arm64-gnu@1.32.0: + resolution: {integrity: sha512-0nnMyoyOLRJXfbMOilaSRcLH3Jw5z9HDNGfT/gwCPgaDjnx0i8w7vBzFLFR1f6CMLKF8gVbebmkUN3fa/kQJpQ==} + engines: {node: '>= 12.0.0'} + cpu: [arm64] + os: [linux] + libc: [glibc] + + lightningcss-linux-arm64-musl@1.32.0: + resolution: {integrity: sha512-UpQkoenr4UJEzgVIYpI80lDFvRmPVg6oqboNHfoH4CQIfNA+HOrZ7Mo7KZP02dC6LjghPQJeBsvXhJod/wnIBg==} + engines: {node: '>= 12.0.0'} + cpu: [arm64] + os: [linux] + libc: [musl] + + lightningcss-linux-x64-gnu@1.32.0: + resolution: {integrity: sha512-V7Qr52IhZmdKPVr+Vtw8o+WLsQJYCTd8loIfpDaMRWGUZfBOYEJeyJIkqGIDMZPwPx24pUMfwSxxI8phr/MbOA==} + engines: {node: '>= 12.0.0'} + cpu: [x64] + os: [linux] + libc: [glibc] + + lightningcss-linux-x64-musl@1.32.0: + resolution: {integrity: sha512-bYcLp+Vb0awsiXg/80uCRezCYHNg1/l3mt0gzHnWV9XP1W5sKa5/TCdGWaR/zBM2PeF/HbsQv/j2URNOiVuxWg==} + engines: {node: '>= 12.0.0'} + cpu: [x64] + os: [linux] + libc: [musl] + + lightningcss-win32-arm64-msvc@1.32.0: + resolution: {integrity: sha512-8SbC8BR40pS6baCM8sbtYDSwEVQd4JlFTOlaD3gWGHfThTcABnNDBda6eTZeqbofalIJhFx0qKzgHJmcPTnGdw==} + engines: {node: '>= 12.0.0'} + cpu: [arm64] + os: [win32] + + lightningcss-win32-x64-msvc@1.32.0: + resolution: {integrity: sha512-Amq9B/SoZYdDi1kFrojnoqPLxYhQ4Wo5XiL8EVJrVsB8ARoC1PWW6VGtT0WKCemjy8aC+louJnjS7U18x3b06Q==} + engines: {node: '>= 12.0.0'} + cpu: [x64] + os: [win32] + + lightningcss@1.32.0: + resolution: {integrity: sha512-NXYBzinNrblfraPGyrbPoD19C1h9lfI/1mzgWYvXUTe414Gz/X1FD2XBZSZM7rRTrMA8JL3OtAaGifrIKhQ5yQ==} + engines: {node: '>= 12.0.0'} + + local-pkg@1.2.1: + resolution: {integrity: sha512-++gUqRDEvcnN6Zhqrr+y/CkVEHhlrR96vZn3nZZPYzMcBUyBtTKzB9NadClFIsIVSsu+3i9tfk/erqy9kAmt7Q==} + engines: {node: '>=14'} + + loupe@3.2.1: + resolution: {integrity: sha512-CdzqowRJCeLU72bHvWqwRBBlLcMEtIvGrlvef74kMnV2AolS9Y8xUv1I0U/MNAWMhBlKIoyuEgoJ0t/bbwHbLQ==} + + lru-cache@10.4.3: + resolution: {integrity: sha512-JNAzZcXrCt42VGLuYz0zfAzDfAvJWW6AfYlDBQyDV5DClI2m5sAmK+OIO7s59XfsRsWHp02jAJrRadPRGTt6SQ==} + + lru-cache@11.5.3: + resolution: {integrity: sha512-U4N8FgzmWxc8k1VH8Kr6lQg18U7Fjvby6wXHVRX/ZZ7IwWbRMgrRbP0Wrb5q5NVinryp4SQampHKdvtecItxUg==} + engines: {node: 20 || >=22} + + magic-string@0.30.21: + resolution: {integrity: sha512-vd2F4YUyEXKGcLHoq+TEyCjxueSeHnFxyyjNp80yg0XV4vUhnDer/lvvlqM/arB5bXQN5K2/3oinyCRyx8T2CQ==} + + mark.js@8.11.1: + resolution: {integrity: sha512-1I+1qpDt4idfgLQG+BNWmrqku+7/2bi5nLf4YwF8y8zXvmfiTBY3PV3ZibfrjBueCByROpuBjLLFCajqkgYoLQ==} + + mdast-util-to-hast@13.2.1: + resolution: {integrity: sha512-cctsq2wp5vTsLIcaymblUriiTcZd0CwWtCbLvrOzYCDZoWyMNV8sZ7krj09FSnsiJi3WVsHLM4k6Dq/yaPyCXA==} + + micromark-util-character@2.1.1: + resolution: {integrity: sha512-wv8tdUTJ3thSFFFJKtpYKOYiGP2+v96Hvk4Tu8KpCAsTMs6yi+nVmGh1syvSCsaxz45J6Jbw+9DD6g97+NV67Q==} + + micromark-util-encode@2.0.1: + resolution: {integrity: sha512-c3cVx2y4KqUnwopcO9b/SCdo2O67LwJJ/UyqGfbigahfegL9myoEFoDYZgkT7f36T0bLrM9hZTAaAyH+PCAXjw==} + + micromark-util-sanitize-uri@2.0.1: + resolution: {integrity: sha512-9N9IomZ/YuGGZZmQec1MbgxtlgougxTodVwDzzEouPKo3qFWvymFHWcnDi2vzV1ff6kas9ucW+o3yzJK9YB1AQ==} + + micromark-util-symbol@2.0.1: + resolution: {integrity: sha512-vs5t8Apaud9N28kgCrRUdEed4UJ+wWNvicHLPxCa9ENlYuAY31M0ETy5y1vA33YoNPDFTghEbnh6efaE8h4x0Q==} + + micromark-util-types@2.0.3: + resolution: {integrity: sha512-oxB2Ik03hI0gv+VNn9tnh1t1YEe9MDPptViAEgfdf3YQHsn0pzGTgCdlSCJXcwhqm8phaEuM7zeEu3QQzVBrPg==} + + minimatch@10.2.3: + resolution: {integrity: sha512-Rwi3pnapEqirPSbWbrZaa6N3nmqq4Xer/2XooiOKyV3q12ML06f7MOuc5DVH8ONZIFhwIYQ3yzPH4nt7iWHaTg==} + engines: {node: 18 || 20 || >=22} + + minimatch@10.2.6: + resolution: {integrity: sha512-vpLQEs+VLCr1nU0BXS07maYoFwlDAH0gngQuuttxIwutDFEMHq2blX+8vpgxDdK3J1PwjCJiep77OitTZ4Ll1A==} + engines: {node: 18 || 20 || >=22} + + minimatch@9.0.9: + resolution: {integrity: sha512-OBwBN9AL4dqmETlpS2zasx+vTeWclWzkblfZk7KTA5j3jeOONz/tRCnZomUyvNg83wL5Zv9Ss6HMJXAgL8R2Yg==} + engines: {node: '>=16 || 14 >=14.17'} + + minipass@7.1.3: + resolution: {integrity: sha512-tEBHqDnIoM/1rXME1zgka9g6Q2lcoCkxHLuc7ODJ5BxbP5d4c2Z5cGgtXAku59200Cx7diuHTOYfSBD8n6mm8A==} + engines: {node: '>=16 || 14 >=14.17'} + + minisearch@7.2.0: + resolution: {integrity: sha512-dqT2XBYUOZOiC5t2HRnwADjhNS2cecp9u+TJRiJ1Qp/f5qjkeT5APcGPjHw+bz89Ms8Jp+cG4AlE+QZ/QnDglg==} + + mitt@3.0.1: + resolution: {integrity: sha512-vKivATfr97l2/QBCYAkXYDbrIWPM2IIKEl7YPhjCvKlG3kE2gm+uBo6nEXK3M5/Ffh/FLpKExzOQ3JJoJGFKBw==} + + mlly@1.8.2: + resolution: {integrity: sha512-d+ObxMQFmbt10sretNDytwt85VrbkhhUA/JBGm1MPaWJ65Cl4wOgLaB1NYvJSZ0Ef03MMEU/0xpPMXUIQ29UfA==} + + ms@2.1.3: + resolution: {integrity: sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==} + + muggle-string@0.4.1: + resolution: {integrity: sha512-VNTrAak/KhO2i8dqqnqnAHOa3cYBwXEZe9h+D5h/1ZqFSTEFHdM65lR7RoIqq3tBBYavsOXV84NoHXZ0AkPyqQ==} + + nanoid@3.3.20: + resolution: {integrity: sha512-uKdg2G3GNCKQn9byYOpxbGqrT2fGO5KRt5J/8b3pok8rT6qxGWF6hxMyJiEYtAf+FVyYuD9hRaDqX5uPFYJ4ZQ==} + engines: {node: ^10 || ^12 || ^13.7 || ^14 || >=15.0.1} + hasBin: true + + nopt@10.0.1: + resolution: {integrity: sha512-df3sBr/6ax9hSGuC3CspvLlbnX8cP5L5nZwXF8cGN8l0zSWR6BvzmQ6jPUKjvo6+/xdpkNvEcucBNUdBeeV13g==} + engines: {node: ^22.22.2 || ^24.15.0 || >=26.0.0} + hasBin: true + + nwsapi@2.2.28: + resolution: {integrity: sha512-IlVB7OS7qrOsVYlpnFIkETjMwT9jwvmocJmmM+GZU/PAB3uGi9Ezd7vcWhWBUnSc0ya4ppmQITOyP1ez9gg8cg==} + + ohash@2.0.12: + resolution: {integrity: sha512-65S/5gk9YSsaRjcyf7Nfa6h/d3E8/1gslpXfI4W7Dxn/oap8IKRuNT5VXkLQ1YFKIEg4apRY4Pj6aiwFzrDdmw==} + + oniguruma-to-es@3.1.1: + resolution: {integrity: sha512-bUH8SDvPkH3ho3dvwJwfonjlQ4R80vjyvrU8YpxuROddv55vAEJrTuCuCVUhhsHbtlD9tGGbaNApGQckXhS8iQ==} + + parse5@7.3.0: + resolution: {integrity: sha512-IInvU7fabl34qmi9gY8XOVxhYyMyuH2xUNpb2q8/Y+7552KlejkRvqvD19nMoUW/uQGGbqNpA6Tufu5FL5BZgw==} + + path-browserify@1.0.1: + resolution: {integrity: sha512-b7uo2UCUOYZcnF/3ID0lulOJi/bafxa1xPe7ZPsammBSpjSWQkjNxlt635YGS2MiR9GjvuXCtz2emr3jbsz98g==} + + path-parse@1.0.7: + resolution: {integrity: sha512-LDJzPVEEEPR+y48z93A0Ed0yXb8pAByGWo/k5YYdYgpY2/2EsOsksJrq7lOHxryrVOn1ejG6oAp8ahvOIQD8sw==} + + path-scurry@2.0.2: + resolution: {integrity: sha512-3O/iVVsJAPsOnpwWIeD+d6z/7PmqApyQePUtCndjatj/9I5LylHvt5qluFaBT3I5h3r1ejfR056c+FCv+NnNXg==} + engines: {node: 18 || 20 || >=22} + + pathe@2.0.3: + resolution: {integrity: sha512-WUjGcAqP1gQacoQe+OBJsFA7Ld4DyXuUIjZ5cc75cLHvJ7dtNsTugphxIADwspS+AraAUePCKrSVtPLFj/F88w==} + + pathval@2.0.1: + resolution: {integrity: sha512-//nshmD55c46FuFw26xV/xFAaB5HF9Xdap7HJBBnrKdAd6/GxDBaNA1870O79+9ueg61cZLSVc+OaFlfmObYVQ==} + engines: {node: '>= 14.16'} + + perfect-debounce@1.0.0: + resolution: {integrity: sha512-xCy9V055GLEqoFaHoC1SoLIaLmWctgCUaBaWxDZ7/Zx4CTyX7cJQLJOok/orfjZAh9kEYpjJa4d0KcJmCbctZA==} + + picocolors@1.1.1: + resolution: {integrity: sha512-xceH2snhtb5M9liqDsmEw56le376mTZkEX/jEb/RxNFyegNul7eNslCXP9FDj/Lcu0X8KEyMceP2ntpaHrDEVA==} + + picomatch@4.0.7: + resolution: {integrity: sha512-qcJu88Q2IWqJsDD529JKMdwGm/dvInW4HvQnRwiH9JtihJvzGOscDtHE3x1pBKeUOTysQ8kVmLnJ2kJu7yhcGA==} + engines: {node: '>=12'} + + pkg-types@1.3.1: + resolution: {integrity: sha512-/Jm5M4RvtBFVkKWRu2BLUTNP8/M2a+UwuAX+ae4770q1qVGtfjG+WTCupoZixokjmHiry8uI+dlY8KXYV5HVVQ==} + + pkg-types@2.3.3: + resolution: {integrity: sha512-j/lCFdcppV0JxWpCEITdbDltBxPP6cHT+yNJ6Go2OgoSA9518X847X9z0p6LtA4Nc16+eQzCZjRrWanTGvHJ5w==} + + postcss@8.5.30: + resolution: {integrity: sha512-zkd+e9S1AQHhmaBKye9zlFHWjOwVgqXl1q3ECYy8561K7qxR2cREf/STLskulBFd78k6AOFeA+ff1TtEzk9bAA==} + engines: {node: ^10 || ^12 || >=14} + + preact@10.29.8: + resolution: {integrity: sha512-ej2aVZ+vZ8WO7tvlQWRM9N63A0KzF9q4mWJfDUHgYaIofWY9hu74QdnQrjoPMmZi2/nZ5gN0bJCQF49xQqx09Q==} + peerDependencies: + preact-render-to-string: '>=5' + peerDependenciesMeta: + preact-render-to-string: + optional: true + + prettier@3.9.10: + resolution: {integrity: sha512-skGHTH1Yb9QvaTC4hWnRTzEYtCpApF0UMBPz+t/0ZPzP8ihefo/btKd+QA7pUE0fEwA1SbS/NmhyEcstdXOIdA==} + engines: {node: '>=14'} + hasBin: true + + property-information@7.2.0: + resolution: {integrity: sha512-IAtzIB6sUiWaJYrX9smp3V46pBGbBeLFRGdh25kg1334VcBlD8HzhPeNIWQH9zhGmo2itIe25EHt9dQP7G5hmg==} + + proto-list@1.2.4: + resolution: {integrity: sha512-vtK/94akxsTMhe0/cbfpR+syPuszcuwhqVjJq26CuNDgFGj682oRBXOP5MJpv2r7JtE8MsiepGIqvvOTBwn2vA==} + + punycode@2.3.1: + resolution: {integrity: sha512-vYt7UD1U9Wg6138shLtLOvdAu+8DsC/ilFtEVHcH+wydcSpNE20AfSOduf6MkRFahL5FY7X1oU7nKVZFtfq8Fg==} + engines: {node: '>=6'} + + quansync@0.2.11: + resolution: {integrity: sha512-AifT7QEbW9Nri4tAwR5M/uzpBuqfZf+zwaEM/QkzEjj7NBuFD2rBuy0K3dE+8wltbezDV7JMA0WfnCPYRSYbXA==} + + regex-recursion@6.0.2: + resolution: {integrity: sha512-0YCaSCq2VRIebiaUviZNs0cBz1kg5kVS2UKUfNIx8YVs1cN3AV7NTctO5FOKBA+UT2BPJIWZauYHPqJODG50cg==} + + regex-utilities@2.3.0: + resolution: {integrity: sha512-8VhliFJAWRaUiVvREIiW2NXXTmHs4vMNnSzuJVhscgmGav3g9VDxLrQndI3dZZVVdp0ZO/5v0xmX516/7M9cng==} + + regex@6.1.0: + resolution: {integrity: sha512-6VwtthbV4o/7+OaAF9I5L5V3llLEsoPyq9P1JVXkedTP33c7MfCG0/5NOPcSJn0TzXcG9YUrR0gQSWioew3LDg==} + + reka-ui@2.11.0: + resolution: {integrity: sha512-ilkpm4bIAol4jwzm4tpm3WVcffyGOpqksNZL1k1qO9QmIwAA+q8jroxjkUGLEn/GddfdExFfvofWfQiKZszUeQ==} + peerDependencies: + vue: '>= 3.4.0' + + require-from-string@2.0.2: + resolution: {integrity: sha512-Xf0nWe6RseziFMu+Ap9biiUbmplq6S9/p+7w7YXP/JBHhrUDDUhwa+vANyubuqfZWTveU//DYVGsDG7RKL/vEw==} + engines: {node: '>=0.10.0'} + + resolve@1.22.13: + resolution: {integrity: sha512-Dj/cW9zBV2aRj6XzCxuGIs3ESZKv02jixne3q6jFZYZ3/Tg09gHHviSMDL4kObh9pqSahdRHEnDoaP2gn8YLhA==} + engines: {node: '>= 0.4'} + hasBin: true + + rfdc@1.4.1: + resolution: {integrity: sha512-q1b3N5QkRUWUl7iyylaaj3kOpIT0N2i9MqIEQXP73GVsN9cw3fdx8X63cEmWhJGi2PPCF23Ijp7ktmd39rawIA==} + + rollup@4.64.9: + resolution: {integrity: sha512-mnPSQINChN7PpT+a5CI0/+87hm/+6zxSKBK1XonrzQ0zFnglaTjhkTP2Br4yNCTcLHUEvrAfZffH57jGf+8xBQ==} + engines: {node: '>=18.0.0', npm: '>=8.0.0'} + hasBin: true + + rrweb-cssom@0.8.0: + resolution: {integrity: sha512-guoltQEx+9aMf2gDZ0s62EcV8lsXR+0w8915TC3ITdn2YueuNjdAYh/levpU9nFaoChh9RUS5ZdQMrKfVEN9tw==} + + safer-buffer@2.1.2: + resolution: {integrity: sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg==} + + saxes@6.0.0: + resolution: {integrity: sha512-xAg7SOnEhrm5zI3puOOKyy1OMcMlIJZYNJY7xLBwSze0UjhPLnWfj2GF2EpT0jmzaJKIWKHLsaSSajf35bcYnA==} + engines: {node: '>=v12.22.7'} + + search-insights@2.17.3: + resolution: {integrity: sha512-RQPdCYTa8A68uM2jwxoY842xDhvx3E5LFL1LxvxCNMev4o5mLuokczhzjAgGwUZBAmOKZknArSxLKmXtIi2AxQ==} + + semver@7.7.4: + resolution: {integrity: sha512-vFKC2IEtQnVhpT78h1Yp8wzwrf8CM+MzKMHGJZfBtzhZNycRFnXsHk6E5TxIkkMsgNS7mdX3AGB7x2QM2di4lA==} + engines: {node: '>=10'} + hasBin: true + + semver@7.8.5: + resolution: {integrity: sha512-Y7/KDsb8LjooZpwaqGyulO6DQlksgCncchHGk+sZIY4SBvUocMBEFH5Ur1fI4dV+Jvl0w6cjvucaIi40puRioA==} + engines: {node: '>=10'} + hasBin: true + + shiki@2.5.0: + resolution: {integrity: sha512-mI//trrsaiCIPsja5CNfsyNOqgAZUb6VpJA+340toL42UpzQlXpwRV9nch69X6gaUxrr9kaOOa6e3y3uAkGFxQ==} + + siginfo@2.0.0: + resolution: {integrity: sha512-ybx0WO1/8bSBLEWXZvEd7gMW3Sn3JFlW3TvX1nREbDLRNQNaeNN8WK0meBwPdAaOI7TtRRRJn/Es1zhrrCHu7g==} + + source-map-js@1.2.2: + resolution: {integrity: sha512-KGj/8Y43x35aZVDtt+J4mK1hoLGHULMYfSkODJNQjNDC3oW1PqPoxMwo0pLUsWM/UEGzON/NxeHywEfNXNP3Vw==} + engines: {node: '>=0.10.0'} + + source-map@0.6.1: + resolution: {integrity: sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==} + engines: {node: '>=0.10.0'} + + space-separated-tokens@2.0.2: + resolution: {integrity: sha512-PEGlAwrG8yXGXRjW32fGbg66JAlOAwbObuqVoJpv/mRgoWDQfgH1wDPvtzWyUSNAXBGSk8h755YDbbcEy3SH2Q==} + + speakingurl@14.0.1: + resolution: {integrity: sha512-1POYv7uv2gXoyGFpBCmpDVSNV74IfsWlDW216UPjbWufNf+bSU6GdbDsxdcxtfwb4xlI3yxzOTKClUosxARYrQ==} + engines: {node: '>=0.10.0'} + + sprintf-js@1.0.3: + resolution: {integrity: sha512-D9cPgkvLlV3t3IzL0D0YLvGA9Ahk4PcvVwUbN0dSGr1aP0Nrt4AEnTUbuGvquEC0mA64Gqt1fzirlRs5ibXx8g==} + + stackback@0.0.2: + resolution: {integrity: sha512-1XMJE5fQo1jGH6Y/7ebnwPOBEkIEnT4QF32d5R1+VXdXveM0IBMJt8zfaxX1P3QhVwrYe+576+jkANtSS2mBbw==} + + std-env@3.10.0: + resolution: {integrity: sha512-5GS12FdOZNliM5mAOxFRg7Ir0pWz8MdpYm6AY6VPkGpbA7ZzmbzNcBJQ0GPvvyWgcY7QAhCgf9Uy89I03faLkg==} + + string-argv@0.3.2: + resolution: {integrity: sha512-aqD2Q0144Z+/RqG52NeHEkZauTAUWJO8c6yTftGJKO3Tja5tUgIfmIl6kExvhtxSDP7fXB6DvzkfMpCd/F3G+Q==} + engines: {node: '>=0.6.19'} + + stringify-entities@4.0.4: + resolution: {integrity: sha512-IwfBptatlO+QCJUo19AqvrPNqlVMpW9YEL2LIVY+Rpv2qsjCGxaDLNRgeGsQWJhfItebuJhsGSLjaBbNSQ+ieg==} + + strip-literal@3.1.0: + resolution: {integrity: sha512-8r3mkIM/2+PpjHoOtiAW8Rg3jJLHaV7xPwG+YRGrv6FP0wwk/toTpATxWYOW0BKdWwl82VT2tFYi5DlROa0Mxg==} + + superjson@2.2.6: + resolution: {integrity: sha512-H+ue8Zo4vJmV2nRjpx86P35lzwDT3nItnIsocgumgr0hHMQ+ZGq5vrERg9kJBo5AWGmxZDhzDo+WVIJqkB0cGA==} + engines: {node: '>=16'} + + supports-color@8.1.1: + resolution: {integrity: sha512-MpUEN2OodtUzxvKQl72cUF7RQ5EiHsGvSsVG0ia9c5RbWGL2CI4C7EpPS8UTBIplnlzZiNuV56w+FuNxy3ty2Q==} + engines: {node: '>=10'} + + supports-preserve-symlinks-flag@1.0.0: + resolution: {integrity: sha512-ot0WnXS9fgdkgIcePe6RHNk1WA8+muPa6cSjeR3V8K27q9BB1rTE3R1p7Hv0z1ZyAc8s6Vvv8DIyWf681MAt0w==} + engines: {node: '>= 0.4'} + + symbol-tree@3.2.4: + resolution: {integrity: sha512-9QNk5KwDF+Bvz+PyObkmSYjI5ksVUYtjW7AU22r2NKcfLJcXp96hkDWU3+XndOsUb+AQ9QhfzfCT2O+CNWT5Tw==} + + tabbable@6.5.0: + resolution: {integrity: sha512-wieBHXygIm7OyQOu5hQlkk62/WyCFYGlWg7L6/ZCUZwx0o398Zkn4pVmMyfYhfMG8kGrj/Krt8eIk6UKC6VzwA==} + + tailwind-variants@3.3.1: + resolution: {integrity: sha512-4pAvwUtM4HKBiRZftncAbpn6V9Hhwoa5Fl7O2u5zbp7Z5Cvu+/o/6+176WY3WCEES209543quG8zFIcXCsc5Jw==} + engines: {node: '>=16.9.x', pnpm: '>=7.x'} + peerDependencies: + tailwind-merge: '>=3.0.0' + tailwindcss: '*' + peerDependenciesMeta: + tailwind-merge: + optional: true + tailwindcss: + optional: true + + tailwindcss@4.3.3: + resolution: {integrity: sha512-gOhV3P7ufE62QDGg1zVaTgCR+EtPv92k2nIhVcVKcLmxT1sUBsQGhnZj175j+MqRt4zLF7ic+sCYjfhxMxj7YQ==} + + tapable@2.3.3: + resolution: {integrity: sha512-uxc/zpqFg6x7C8vOE7lh6Lbda8eEL9zmVm/PLeTPBRhh1xCgdWaQ+J1CUieGpIfm2HdtsUpRv+HshiasBMcc6A==} + engines: {node: '>=6'} + + tinybench@2.9.0: + resolution: {integrity: sha512-0+DUvqWMValLmha6lr4kD8iAMK1HzV0/aKnCtWb9v9641TnP/MFb7Pc2bxoxQjTXAErryXVgUOfv2YqNllqGeg==} + + tinyexec@0.3.2: + resolution: {integrity: sha512-KQQR9yN7R5+OSwaK0XQoj22pwHoTlgYqmUscPYoknOoWCWfj/5/ABTMRi69FrKU5ffPVh5QcFikpWJI/P1ocHA==} + + tinyglobby@0.2.17: + resolution: {integrity: sha512-wXR/dYpcqKmfWpEdZjiKJOwCNFndD0DMnrW/cYjVGttEkBfVgcLFHoNrlj47mjOVic9yyNu65alsgF4NQyTa2g==} + engines: {node: '>=12.0.0'} + + tinypool@1.1.1: + resolution: {integrity: sha512-Zba82s87IFq9A9XmjiX5uZA/ARWDrB03OHlq+Vw1fSdt0I+4/Kutwy8BP4Y/y/aORMo61FQ0vIb5j44vSo5Pkg==} + engines: {node: ^18.0.0 || >=20.0.0} + + tinyrainbow@2.0.0: + resolution: {integrity: sha512-op4nsTR47R6p0vMUUoYl/a+ljLFVtlfaXkLQmqfLR1qHma1h/ysYk4hEXZ880bf2CYgTskvTa/e196Vd5dDQXw==} + engines: {node: '>=14.0.0'} + + tinyspy@4.0.6: + resolution: {integrity: sha512-u8KszXvGfU68hVcZpRHKG28T0krMuv2G5nDhiHaMLen/gIuFEgIJhaJuO69qjnXg5paSrbPMFfx3brNuN8eVSg==} + engines: {node: '>=14.0.0'} + + tldts-core@6.1.86: + resolution: {integrity: sha512-Je6p7pkk+KMzMv2XXKmAE3McmolOQFdxkKw0R8EYNr7sELW46JqnNeTX8ybPiQgvg1ymCoF8LXs5fzFaZvJPTA==} + + tldts@6.1.86: + resolution: {integrity: sha512-WMi/OQ2axVTf/ykqCQgXiIct+mSQDFdH2fkwhPwgEwvJ1kSzZRiinb0zF2Xb8u4+OqPChmyI6MEu4EezNJz+FQ==} + hasBin: true + + tough-cookie@5.1.2: + resolution: {integrity: sha512-FVDYdxtnj0G6Qm/DhNPSb8Ju59ULcup3tuJxkFb5K8Bv2pUXILbf0xZWU8PX8Ov19OXljbUyveOFwRMwkXzO+A==} + engines: {node: '>=16'} + + tr46@5.1.1: + resolution: {integrity: sha512-hdF5ZgjTqgAntKkklYw0R03MG2x/bSzTtkxmIRw/sTNV8YXsCJ1tfLAX23lhxhHJlEf3CRCOCGGWw3vI3GaSPw==} + engines: {node: '>=18'} + + trim-lines@3.0.1: + resolution: {integrity: sha512-kRj8B+YHZCc9kQYdWfJB2/oUl9rA99qbowYYBtr4ui4mZyAQ2JpvVBd/6U2YloATfqBhBTSMhTpgBHtU0Mf3Rg==} + + tslib@2.8.1: + resolution: {integrity: sha512-oJFu94HQb+KVduSUQL7wnpmqnfmLsOA/nAh6b6EH0wCEoK0/mPeXU6c3wKDV83MkOuHPRHtSXKKU99IBazS/2w==} + + typescript@5.9.3: + resolution: {integrity: sha512-jl1vZzPDinLr9eUt3J/t7V6FgNEw9QjvBPdysz9KfQDD41fQrC2Y4vKQdiaUpFT4bXlb1RHhLpp8wtm6M5TgSw==} + engines: {node: '>=14.17'} + hasBin: true + + ufo@1.6.4: + resolution: {integrity: sha512-JFNbkD1Svwe0KvGi8GOeLcP4kAWQ609twvCdcHxq1oSL8svv39ZuSvajcD8B+5D0eL4+s1Is2D/O6KN3qcTeRA==} + + undici-types@6.21.0: + resolution: {integrity: sha512-iwDZqg0QAGrg9Rav5H4n0M64c3mkR59cJ6wQp+7C4nI0gsmExaedaYLNO44eT4AtBBwjbTiGPMlt2Md0T9H9JQ==} + + unist-util-is@6.0.1: + resolution: {integrity: sha512-LsiILbtBETkDz8I9p1dQ0uyRUWuaQzd/cuEeS1hoRSyW5E5XGmTzlwY1OrNzzakGowI9Dr/I8HVaw4hTtnxy8g==} + + unist-util-position@5.0.0: + resolution: {integrity: sha512-fucsC7HjXvkB5R3kTCO7kUjRdrS0BJt3M/FPxmHMBOm8JQi2BsHAHFsy27E0EolP8rp0NzXsJ+jNPyDWvOJZPA==} + + unist-util-stringify-position@4.0.0: + resolution: {integrity: sha512-0ASV06AAoKCDkS2+xw5RXJywruurpbC4JZSm7nr7MOt1ojAzvyyaO+UxZf18j8FCF6kmzCZKcAgN/yu2gm2XgQ==} + + unist-util-visit-parents@6.0.2: + resolution: {integrity: sha512-goh1s1TBrqSqukSc8wrjwWhL0hiJxgA8m4kFxGlQ+8FYQ3C/m11FcTs4YYem7V664AhHVvgoQLk890Ssdsr2IQ==} + + unist-util-visit@5.1.0: + resolution: {integrity: sha512-m+vIdyeCOpdr/QeQCu2EzxX/ohgS8KbnPDgFni4dQsfSCtpz8UqDyY5GjRru8PDKuYn7Fq19j1CQ+nJSsGKOzg==} + + universalify@2.0.1: + resolution: {integrity: sha512-gptHNQghINnc/vTGIk0SOFGFNXw7JVrlRUtConJRlvaw6DuX0wO5Jeko9sWrMBhh+PsYAZ7oXAiOnf/UKogyiw==} + engines: {node: '>= 10.0.0'} + + vfile-message@4.0.3: + resolution: {integrity: sha512-QTHzsGd1EhbZs4AsQ20JX1rC3cOlt/IWJruk893DfLRr57lcnOeMaWG4K0JrRta4mIJZKth2Au3mM3u03/JWKw==} + + vfile@6.0.3: + resolution: {integrity: sha512-KzIbH/9tXat2u30jf+smMwFCsno4wHVdNmzFyL+T/L3UGqqk6JKfVqOFOZEpZSHADH1k40ab6NUIXZq422ov3Q==} + + vite-node@3.2.4: + resolution: {integrity: sha512-EbKSKh+bh1E1IFxeO0pg1n4dvoOTt0UDiXMd/qn++r98+jPO1xtJilvXldeuQ8giIB5IkpjCgMleHMNEsGH6pg==} + engines: {node: ^18.0.0 || ^20.0.0 || >=22.0.0} + hasBin: true + + vite-plugin-dts@4.5.4: + resolution: {integrity: sha512-d4sOM8M/8z7vRXHHq/ebbblfaxENjogAAekcfcDCCwAyvGqnPrc7f4NZbvItS+g4WTgerW0xDwSz5qz11JT3vg==} + peerDependencies: + typescript: '*' + vite: '*' + peerDependenciesMeta: + vite: + optional: true + + vite@5.4.21: + resolution: {integrity: sha512-o5a9xKjbtuhY6Bi5S3+HvbRERmouabWbyUcpXXUA1u+GNUKoROi9byOJ8M0nHbHYHkYICiMlqxkg1KkYmm25Sw==} + engines: {node: ^18.0.0 || >=20.0.0} + hasBin: true + peerDependencies: + '@types/node': ^18.0.0 || >=20.0.0 + less: '*' + lightningcss: ^1.21.0 + sass: '*' + sass-embedded: '*' + stylus: '*' + sugarss: '*' + terser: ^5.4.0 + peerDependenciesMeta: + '@types/node': + optional: true + less: + optional: true + lightningcss: + optional: true + sass: + optional: true + sass-embedded: + optional: true + stylus: + optional: true + sugarss: + optional: true + terser: + optional: true + + vite@7.3.7: + resolution: {integrity: sha512-AHEzTORMbi7/7aXp7w7KZ5+DCUdSeLsJz0grY8xHpc9DHdYb0vQu6DqJfm2tOw3gDExNgPgnJTXxM6syYFHaCA==} + engines: {node: ^20.19.0 || >=22.12.0} + hasBin: true + peerDependencies: + '@types/node': ^20.19.0 || >=22.12.0 + jiti: '>=1.21.0' + less: ^4.0.0 + lightningcss: ^1.21.0 + sass: ^1.70.0 + sass-embedded: ^1.70.0 + stylus: '>=0.54.8' + sugarss: ^5.0.0 + terser: ^5.16.0 + tsx: ^4.8.1 + yaml: ^2.4.2 + peerDependenciesMeta: + '@types/node': + optional: true + jiti: + optional: true + less: + optional: true + lightningcss: + optional: true + sass: + optional: true + sass-embedded: + optional: true + stylus: + optional: true + sugarss: + optional: true + terser: + optional: true + tsx: + optional: true + yaml: + optional: true + + vitepress@1.6.4: + resolution: {integrity: sha512-+2ym1/+0VVrbhNyRoFFesVvBvHAVMZMK0rw60E3X/5349M1GuVdKeazuksqopEdvkKwKGs21Q729jX81/bkBJg==} + hasBin: true + peerDependencies: + markdown-it-mathjax3: ^4 + postcss: ^8 + peerDependenciesMeta: + markdown-it-mathjax3: + optional: true + postcss: + optional: true + + vitest@3.2.7: + resolution: {integrity: sha512-KrxIJ62Fd89gfysR4WotlgZABiz2dqFPgqGzX7s+CwsqLFomRH7777ZcrOD6+WVAh7khPQP41A+BKbpcJFrdEg==} + engines: {node: ^18.0.0 || ^20.0.0 || >=22.0.0} + hasBin: true + peerDependencies: + '@edge-runtime/vm': '*' + '@types/debug': ^4.1.12 + '@types/node': ^18.0.0 || ^20.0.0 || >=22.0.0 + '@vitest/browser': 3.2.7 + '@vitest/ui': 3.2.7 + happy-dom: '*' + jsdom: '*' + peerDependenciesMeta: + '@edge-runtime/vm': + optional: true + '@types/debug': + optional: true + '@types/node': + optional: true + '@vitest/browser': + optional: true + '@vitest/ui': + optional: true + happy-dom: + optional: true + jsdom: + optional: true + + vscode-uri@3.2.0: + resolution: {integrity: sha512-m2gXo3bn0G1kT9InzMf07fTbqMbGtyckj3bH5ktLO+1Ssv+yiATZ4dhwaQv9UZWxJh6E9IFGnQyjgWVDWVBDrg==} + + vue-component-type-helpers@3.3.13: + resolution: {integrity: sha512-02KCxSmKDhIITjKyJ4QT5csP6L0WoRborLqY/34a40+S9uvMvdNgMV0yVjO3p2Gkz3ZoPmFz/0JsGHacwJYTxw==} + + vue-tsc@3.3.13: + resolution: {integrity: sha512-jE4/bXdOMSHVxEGgQCqNllJy+9N3Gx6tfSAsg0yhFK/MAN6eXqISihupnDEKSCt12VVnjN2gI3AqLYcqoh5x/A==} + hasBin: true + peerDependencies: + typescript: '>=5.0.0' + + vue@3.5.44: + resolution: {integrity: sha512-dvvmaOCG7lAMkJTPqPwWeGMsPS6DIsFsfZDUgBp9V6mHf9b3+/wyVwYR4Es+WV6uJC0FKRxp81Obcq0ZwUcGFQ==} + peerDependencies: + typescript: '*' + peerDependenciesMeta: + typescript: + optional: true + + w3c-xmlserializer@5.0.0: + resolution: {integrity: sha512-o8qghlI8NZHU1lLPrpi2+Uq7abh4GGPpYANlalzWxyWteJOCsr/P+oPBA49TOLu5FTZO4d3F9MnWJfiMo4BkmA==} + engines: {node: '>=18'} + + webidl-conversions@7.0.0: + resolution: {integrity: sha512-VwddBukDzu71offAQR975unBIGqfKZpM+8ZX6ySk8nYhVoo5CYaZyzt3YBvYtRtO+aoGlqxPg/B87NGVZ/fu6g==} + engines: {node: '>=12'} + + whatwg-encoding@3.1.1: + resolution: {integrity: sha512-6qN4hJdMwfYBtE3YBTTHhoeuUrDBPZmbQaxWAqSALV/MeEnR5z1xd8UKud2RAkFoPkmB+hli1TZSnyi84xz1vQ==} + engines: {node: '>=18'} + deprecated: Use @exodus/bytes instead for a more spec-conformant and faster implementation + + whatwg-mimetype@4.0.0: + resolution: {integrity: sha512-QaKxh0eNIi2mE9p2vEdzfagOKHCcj1pJ56EEHGQOVxp8r9/iszLUUV7v89x9O1p/T+NlTM5W7jW6+cz4Fq1YVg==} + engines: {node: '>=18'} + + whatwg-url@14.2.0: + resolution: {integrity: sha512-De72GdQZzNTUBBChsXueQUnPKDkg/5A5zp7pFDuQAj5UFoENpiACU0wlCvzpAGnTkj++ihpKwKyYewn/XNUbKw==} + engines: {node: '>=18'} + + why-is-node-running@2.3.0: + resolution: {integrity: sha512-hUrmaWBdVDcxvYqnyh09zunKzROWjbZTiNy8dBEjkS7ehEDQibXJ7XvlmtbwuTclUiIyN+CyXQD4Vmko8fNm8w==} + engines: {node: '>=8'} + hasBin: true + + ws@8.22.0: + resolution: {integrity: sha512-Ydggc987+RO0AnWtZ/7Wq9FtNvcrL1b/RO0ud9mWjUPgDrsAAwQSF51sm2hm1XofbU/4jkpGEsLFsZZxU+1DOg==} + engines: {node: '>=10.0.0'} + peerDependencies: + bufferutil: ^4.0.1 + utf-8-validate: '>=5.0.2' + peerDependenciesMeta: + bufferutil: + optional: true + utf-8-validate: + optional: true + + xml-name-validator@5.0.0: + resolution: {integrity: sha512-EvGK8EJ3DhaHfbRlETOWAS5pO9MZITeauHKJyb8wyajUfQUenkIg2MvLDTZ4T/TgIcm3HU0TFBgWWboAZ30UHg==} + engines: {node: '>=18'} + + xmlchars@2.2.0: + resolution: {integrity: sha512-JZnDKK8B0RCDw84FNdDAIpZK+JuJw+s7Lz8nksI7SIuU3UXJJslUthsi+uWBUYOwPFwW7W7PRLRfUKpxjtjFCw==} + + zwitch@2.0.4: + resolution: {integrity: sha512-bXE4cR/kVZhKZX/RjPEflHaKVhUVl85noU3v6b8apfQEc1x4A+zBxjZ4lN8LqGd6WZ3dl98pY4o717VFmoPp+A==} + +snapshots: + + '@algolia/abtesting@1.26.0': + dependencies: + '@algolia/client-common': 5.60.0 + '@algolia/requester-browser-xhr': 5.60.0 + '@algolia/requester-fetch': 5.60.0 + '@algolia/requester-node-http': 5.60.0 + + '@algolia/autocomplete-core@1.17.7(@algolia/client-search@5.60.0)(algoliasearch@5.60.0)(search-insights@2.17.3)': + dependencies: + '@algolia/autocomplete-plugin-algolia-insights': 1.17.7(@algolia/client-search@5.60.0)(algoliasearch@5.60.0)(search-insights@2.17.3) + '@algolia/autocomplete-shared': 1.17.7(@algolia/client-search@5.60.0)(algoliasearch@5.60.0) + transitivePeerDependencies: + - '@algolia/client-search' + - algoliasearch + - search-insights + + '@algolia/autocomplete-plugin-algolia-insights@1.17.7(@algolia/client-search@5.60.0)(algoliasearch@5.60.0)(search-insights@2.17.3)': + dependencies: + '@algolia/autocomplete-shared': 1.17.7(@algolia/client-search@5.60.0)(algoliasearch@5.60.0) + search-insights: 2.17.3 + transitivePeerDependencies: + - '@algolia/client-search' + - algoliasearch + + '@algolia/autocomplete-preset-algolia@1.17.7(@algolia/client-search@5.60.0)(algoliasearch@5.60.0)': + dependencies: + '@algolia/autocomplete-shared': 1.17.7(@algolia/client-search@5.60.0)(algoliasearch@5.60.0) + '@algolia/client-search': 5.60.0 + algoliasearch: 5.60.0 + + '@algolia/autocomplete-shared@1.17.7(@algolia/client-search@5.60.0)(algoliasearch@5.60.0)': + dependencies: + '@algolia/client-search': 5.60.0 + algoliasearch: 5.60.0 + + '@algolia/client-abtesting@5.60.0': + dependencies: + '@algolia/client-common': 5.60.0 + '@algolia/requester-browser-xhr': 5.60.0 + '@algolia/requester-fetch': 5.60.0 + '@algolia/requester-node-http': 5.60.0 + + '@algolia/client-analytics@5.60.0': + dependencies: + '@algolia/client-common': 5.60.0 + '@algolia/requester-browser-xhr': 5.60.0 + '@algolia/requester-fetch': 5.60.0 + '@algolia/requester-node-http': 5.60.0 + + '@algolia/client-common@5.60.0': {} + + '@algolia/client-insights@5.60.0': + dependencies: + '@algolia/client-common': 5.60.0 + '@algolia/requester-browser-xhr': 5.60.0 + '@algolia/requester-fetch': 5.60.0 + '@algolia/requester-node-http': 5.60.0 + + '@algolia/client-personalization@5.60.0': + dependencies: + '@algolia/client-common': 5.60.0 + '@algolia/requester-browser-xhr': 5.60.0 + '@algolia/requester-fetch': 5.60.0 + '@algolia/requester-node-http': 5.60.0 + + '@algolia/client-query-suggestions@5.60.0': + dependencies: + '@algolia/client-common': 5.60.0 + '@algolia/requester-browser-xhr': 5.60.0 + '@algolia/requester-fetch': 5.60.0 + '@algolia/requester-node-http': 5.60.0 + + '@algolia/client-search@5.60.0': + dependencies: + '@algolia/client-common': 5.60.0 + '@algolia/requester-browser-xhr': 5.60.0 + '@algolia/requester-fetch': 5.60.0 + '@algolia/requester-node-http': 5.60.0 + + '@algolia/ingestion@1.60.0': + dependencies: + '@algolia/client-common': 5.60.0 + '@algolia/requester-browser-xhr': 5.60.0 + '@algolia/requester-fetch': 5.60.0 + '@algolia/requester-node-http': 5.60.0 + + '@algolia/monitoring@1.60.0': + dependencies: + '@algolia/client-common': 5.60.0 + '@algolia/requester-browser-xhr': 5.60.0 + '@algolia/requester-fetch': 5.60.0 + '@algolia/requester-node-http': 5.60.0 + + '@algolia/recommend@5.60.0': + dependencies: + '@algolia/client-common': 5.60.0 + '@algolia/requester-browser-xhr': 5.60.0 + '@algolia/requester-fetch': 5.60.0 + '@algolia/requester-node-http': 5.60.0 + + '@algolia/requester-browser-xhr@5.60.0': + dependencies: + '@algolia/client-common': 5.60.0 + + '@algolia/requester-fetch@5.60.0': + dependencies: + '@algolia/client-common': 5.60.0 + + '@algolia/requester-node-http@5.60.0': + dependencies: + '@algolia/client-common': 5.60.0 + + '@asamuzakjp/css-color@3.2.0': + dependencies: + '@csstools/css-calc': 2.1.4(@csstools/css-parser-algorithms@3.0.5(@csstools/css-tokenizer@3.0.4))(@csstools/css-tokenizer@3.0.4) + '@csstools/css-color-parser': 3.1.0(@csstools/css-parser-algorithms@3.0.5(@csstools/css-tokenizer@3.0.4))(@csstools/css-tokenizer@3.0.4) + '@csstools/css-parser-algorithms': 3.0.5(@csstools/css-tokenizer@3.0.4) + '@csstools/css-tokenizer': 3.0.4 + lru-cache: 10.4.3 + + '@babel/helper-string-parser@7.29.7': {} + + '@babel/helper-validator-identifier@7.29.7': {} + + '@babel/parser@7.29.9': + dependencies: + '@babel/types': 7.29.8 + + '@babel/types@7.29.8': + dependencies: + '@babel/helper-string-parser': 7.29.7 + '@babel/helper-validator-identifier': 7.29.7 + + '@csstools/color-helpers@5.1.0': {} + + '@csstools/css-calc@2.1.4(@csstools/css-parser-algorithms@3.0.5(@csstools/css-tokenizer@3.0.4))(@csstools/css-tokenizer@3.0.4)': + dependencies: + '@csstools/css-parser-algorithms': 3.0.5(@csstools/css-tokenizer@3.0.4) + '@csstools/css-tokenizer': 3.0.4 + + '@csstools/css-color-parser@3.1.0(@csstools/css-parser-algorithms@3.0.5(@csstools/css-tokenizer@3.0.4))(@csstools/css-tokenizer@3.0.4)': + dependencies: + '@csstools/color-helpers': 5.1.0 + '@csstools/css-calc': 2.1.4(@csstools/css-parser-algorithms@3.0.5(@csstools/css-tokenizer@3.0.4))(@csstools/css-tokenizer@3.0.4) + '@csstools/css-parser-algorithms': 3.0.5(@csstools/css-tokenizer@3.0.4) + '@csstools/css-tokenizer': 3.0.4 + + '@csstools/css-parser-algorithms@3.0.5(@csstools/css-tokenizer@3.0.4)': + dependencies: + '@csstools/css-tokenizer': 3.0.4 + + '@csstools/css-tokenizer@3.0.4': {} + + '@docsearch/css@3.8.2': {} + + '@docsearch/js@3.8.2(@algolia/client-search@5.60.0)(search-insights@2.17.3)': + dependencies: + '@docsearch/react': 3.8.2(@algolia/client-search@5.60.0)(search-insights@2.17.3) + preact: 10.29.8 + transitivePeerDependencies: + - '@algolia/client-search' + - '@types/react' + - preact-render-to-string + - react + - react-dom + - search-insights + + '@docsearch/react@3.8.2(@algolia/client-search@5.60.0)(search-insights@2.17.3)': + dependencies: + '@algolia/autocomplete-core': 1.17.7(@algolia/client-search@5.60.0)(algoliasearch@5.60.0)(search-insights@2.17.3) + '@algolia/autocomplete-preset-algolia': 1.17.7(@algolia/client-search@5.60.0)(algoliasearch@5.60.0) + '@docsearch/css': 3.8.2 + algoliasearch: 5.60.0 + optionalDependencies: + search-insights: 2.17.3 + transitivePeerDependencies: + - '@algolia/client-search' + + '@esbuild/aix-ppc64@0.21.5': + optional: true + + '@esbuild/aix-ppc64@0.28.2': + optional: true + + '@esbuild/android-arm64@0.21.5': + optional: true + + '@esbuild/android-arm64@0.28.2': + optional: true + + '@esbuild/android-arm@0.21.5': + optional: true + + '@esbuild/android-arm@0.28.2': + optional: true + + '@esbuild/android-x64@0.21.5': + optional: true + + '@esbuild/android-x64@0.28.2': + optional: true + + '@esbuild/darwin-arm64@0.21.5': + optional: true + + '@esbuild/darwin-arm64@0.28.2': + optional: true + + '@esbuild/darwin-x64@0.21.5': + optional: true + + '@esbuild/darwin-x64@0.28.2': + optional: true + + '@esbuild/freebsd-arm64@0.21.5': + optional: true + + '@esbuild/freebsd-arm64@0.28.2': + optional: true + + '@esbuild/freebsd-x64@0.21.5': + optional: true + + '@esbuild/freebsd-x64@0.28.2': + optional: true + + '@esbuild/linux-arm64@0.21.5': + optional: true + + '@esbuild/linux-arm64@0.28.2': + optional: true + + '@esbuild/linux-arm@0.21.5': + optional: true + + '@esbuild/linux-arm@0.28.2': + optional: true + + '@esbuild/linux-ia32@0.21.5': + optional: true + + '@esbuild/linux-ia32@0.28.2': + optional: true + + '@esbuild/linux-loong64@0.21.5': + optional: true + + '@esbuild/linux-loong64@0.28.2': + optional: true + + '@esbuild/linux-mips64el@0.21.5': + optional: true + + '@esbuild/linux-mips64el@0.28.2': + optional: true + + '@esbuild/linux-ppc64@0.21.5': + optional: true + + '@esbuild/linux-ppc64@0.28.2': + optional: true + + '@esbuild/linux-riscv64@0.21.5': + optional: true + + '@esbuild/linux-riscv64@0.28.2': + optional: true + + '@esbuild/linux-s390x@0.21.5': + optional: true + + '@esbuild/linux-s390x@0.28.2': + optional: true + + '@esbuild/linux-x64@0.21.5': + optional: true + + '@esbuild/linux-x64@0.28.2': + optional: true + + '@esbuild/netbsd-arm64@0.28.2': + optional: true + + '@esbuild/netbsd-x64@0.21.5': + optional: true + + '@esbuild/netbsd-x64@0.28.2': + optional: true + + '@esbuild/openbsd-arm64@0.28.2': + optional: true + + '@esbuild/openbsd-x64@0.21.5': + optional: true + + '@esbuild/openbsd-x64@0.28.2': + optional: true + + '@esbuild/openharmony-arm64@0.28.2': + optional: true + + '@esbuild/sunos-x64@0.21.5': + optional: true + + '@esbuild/sunos-x64@0.28.2': + optional: true + + '@esbuild/win32-arm64@0.21.5': + optional: true + + '@esbuild/win32-arm64@0.28.2': + optional: true + + '@esbuild/win32-ia32@0.21.5': + optional: true + + '@esbuild/win32-ia32@0.28.2': + optional: true + + '@esbuild/win32-x64@0.21.5': + optional: true + + '@esbuild/win32-x64@0.28.2': + optional: true + + '@floating-ui/core@1.8.0': + dependencies: + '@floating-ui/utils': 0.2.12 + + '@floating-ui/dom@1.8.0': + dependencies: + '@floating-ui/core': 1.8.0 + '@floating-ui/utils': 0.2.12 + + '@floating-ui/utils@0.2.12': {} + + '@floating-ui/vue@2.0.1(vue@3.5.44(typescript@5.9.3))': + dependencies: + '@floating-ui/dom': 1.8.0 + '@floating-ui/utils': 0.2.12 + vue: 3.5.44(typescript@5.9.3) + + '@iconify-json/simple-icons@1.2.100': + dependencies: + '@iconify/types': 2.0.0 + + '@iconify/types@2.0.0': {} + + '@internationalized/date@3.12.4': + dependencies: + '@swc/helpers': 0.5.23 + + '@internationalized/number@3.6.9': + dependencies: + '@swc/helpers': 0.5.23 + + '@jridgewell/gen-mapping@0.3.13': + dependencies: + '@jridgewell/sourcemap-codec': 1.6.0 + '@jridgewell/trace-mapping': 0.3.31 + + '@jridgewell/remapping@2.3.5': + dependencies: + '@jridgewell/gen-mapping': 0.3.13 + '@jridgewell/trace-mapping': 0.3.31 + + '@jridgewell/resolve-uri@3.1.2': {} + + '@jridgewell/sourcemap-codec@1.6.0': {} + + '@jridgewell/trace-mapping@0.3.31': + dependencies: + '@jridgewell/resolve-uri': 3.1.2 + '@jridgewell/sourcemap-codec': 1.6.0 + + '@microsoft/api-extractor-model@7.33.15(@types/node@22.20.5)': + dependencies: + '@microsoft/tsdoc': 0.17.1 + '@microsoft/tsdoc-config': 0.18.3 + '@rushstack/node-core-library': 5.25.1(@types/node@22.20.5) + transitivePeerDependencies: + - '@types/node' + + '@microsoft/api-extractor@7.59.4(@types/node@22.20.5)': + dependencies: + '@microsoft/api-extractor-model': 7.33.15(@types/node@22.20.5) + '@microsoft/tsdoc': 0.17.1 + '@microsoft/tsdoc-config': 0.18.3 + '@rushstack/node-core-library': 5.25.1(@types/node@22.20.5) + '@rushstack/rig-package': 0.7.4 + '@rushstack/terminal': 0.24.7(@types/node@22.20.5) + '@rushstack/ts-command-line': 5.3.17(@types/node@22.20.5) + diff: 8.0.4 + minimatch: 10.2.3 + resolve: 1.22.13 + semver: 7.7.4 + source-map: 0.6.1 + typescript: 5.9.3 + transitivePeerDependencies: + - '@types/node' + + '@microsoft/tsdoc-config@0.18.3': + dependencies: + '@microsoft/tsdoc': 0.17.1 + ajv: 8.18.0 + jju: 1.4.0 + resolve: 1.22.13 + + '@microsoft/tsdoc@0.17.1': {} + + '@napi-rs/lzma-linux-x64-gnu@1.5.1': + optional: true + + '@one-ini/wasm@0.2.1': {} + + '@rolldown/pluginutils@1.0.1': {} + + '@rollup/pluginutils@5.4.0(rollup@4.64.9)': + dependencies: + '@types/estree': 1.0.9 + estree-walker: 2.0.2 + picomatch: 4.0.7 + optionalDependencies: + rollup: 4.64.9 + + '@rollup/rollup-android-arm-eabi@4.64.9': + optional: true + + '@rollup/rollup-android-arm64@4.64.9': + optional: true + + '@rollup/rollup-darwin-arm64@4.64.9': + optional: true + + '@rollup/rollup-darwin-x64@4.64.9': + optional: true + + '@rollup/rollup-freebsd-arm64@4.64.9': + optional: true + + '@rollup/rollup-freebsd-x64@4.64.9': + optional: true + + '@rollup/rollup-linux-arm-gnueabihf@4.64.9': + optional: true + + '@rollup/rollup-linux-arm-musleabihf@4.64.9': + optional: true + + '@rollup/rollup-linux-arm64-gnu@4.64.9': + optional: true + + '@rollup/rollup-linux-arm64-musl@4.64.9': + optional: true + + '@rollup/rollup-linux-loong64-gnu@4.64.9': + optional: true + + '@rollup/rollup-linux-loong64-musl@4.64.9': + optional: true + + '@rollup/rollup-linux-ppc64-gnu@4.64.9': + optional: true + + '@rollup/rollup-linux-ppc64-musl@4.64.9': + optional: true + + '@rollup/rollup-linux-riscv64-gnu@4.64.9': + optional: true + + '@rollup/rollup-linux-riscv64-musl@4.64.9': + optional: true + + '@rollup/rollup-linux-s390x-gnu@4.64.9': + optional: true + + '@rollup/rollup-linux-x64-gnu@4.64.9': + optional: true + + '@rollup/rollup-linux-x64-musl@4.64.9': + optional: true + + '@rollup/rollup-openbsd-x64@4.64.9': + optional: true + + '@rollup/rollup-openharmony-arm64@4.64.9': + optional: true + + '@rollup/rollup-win32-arm64-msvc@4.64.9': + optional: true + + '@rollup/rollup-win32-ia32-msvc@4.64.9': + optional: true + + '@rollup/rollup-win32-x64-gnu@4.64.9': + optional: true + + '@rollup/rollup-win32-x64-msvc@4.64.9': + optional: true + + '@rushstack/node-core-library@5.25.1(@types/node@22.20.5)': + dependencies: + ajv: 8.20.0 + ajv-draft-04: 1.0.0(ajv@8.20.0) + ajv-formats: 3.0.1(ajv@8.20.0) + fs-extra: 11.3.6 + import-lazy: 4.0.0 + jju: 1.4.0 + resolve: 1.22.13 + semver: 7.7.4 + optionalDependencies: + '@types/node': 22.20.5 + + '@rushstack/problem-matcher@0.2.1(@types/node@22.20.5)': + optionalDependencies: + '@types/node': 22.20.5 + + '@rushstack/rig-package@0.7.4': + dependencies: + jju: 1.4.0 + resolve: 1.22.13 + + '@rushstack/terminal@0.24.7(@types/node@22.20.5)': + dependencies: + '@rushstack/node-core-library': 5.25.1(@types/node@22.20.5) + '@rushstack/problem-matcher': 0.2.1(@types/node@22.20.5) + supports-color: 8.1.1 + optionalDependencies: + '@types/node': 22.20.5 + + '@rushstack/ts-command-line@5.3.17(@types/node@22.20.5)': + dependencies: + '@rushstack/terminal': 0.24.7(@types/node@22.20.5) + '@types/argparse': 1.0.38 + argparse: 1.0.10 + string-argv: 0.3.2 + transitivePeerDependencies: + - '@types/node' + + '@shikijs/core@2.5.0': + dependencies: + '@shikijs/engine-javascript': 2.5.0 + '@shikijs/engine-oniguruma': 2.5.0 + '@shikijs/types': 2.5.0 + '@shikijs/vscode-textmate': 10.0.2 + '@types/hast': 3.0.5 + hast-util-to-html: 9.0.5 + + '@shikijs/engine-javascript@2.5.0': + dependencies: + '@shikijs/types': 2.5.0 + '@shikijs/vscode-textmate': 10.0.2 + oniguruma-to-es: 3.1.1 + + '@shikijs/engine-oniguruma@2.5.0': + dependencies: + '@shikijs/types': 2.5.0 + '@shikijs/vscode-textmate': 10.0.2 + + '@shikijs/langs@2.5.0': + dependencies: + '@shikijs/types': 2.5.0 + + '@shikijs/themes@2.5.0': + dependencies: + '@shikijs/types': 2.5.0 + + '@shikijs/transformers@2.5.0': + dependencies: + '@shikijs/core': 2.5.0 + '@shikijs/types': 2.5.0 + + '@shikijs/types@2.5.0': + dependencies: + '@shikijs/vscode-textmate': 10.0.2 + '@types/hast': 3.0.5 + + '@shikijs/vscode-textmate@10.0.2': {} + + '@swc/helpers@0.5.23': + dependencies: + tslib: 2.8.1 + + '@tabler/icons-vue@3.49.0(vue@3.5.44(typescript@5.9.3))': + dependencies: + '@tabler/icons': 3.49.0 + vue: 3.5.44(typescript@5.9.3) + + '@tabler/icons@3.49.0': {} + + '@tailwindcss/node@4.3.3': + dependencies: + '@jridgewell/remapping': 2.3.5 + enhanced-resolve: 5.26.0 + jiti: 2.7.0 + lightningcss: 1.32.0 + magic-string: 0.30.21 + source-map-js: 1.2.2 + tailwindcss: 4.3.3 + + '@tailwindcss/oxide-android-arm64@4.3.3': + optional: true + + '@tailwindcss/oxide-darwin-arm64@4.3.3': + optional: true + + '@tailwindcss/oxide-darwin-x64@4.3.3': + optional: true + + '@tailwindcss/oxide-freebsd-x64@4.3.3': + optional: true + + '@tailwindcss/oxide-linux-arm-gnueabihf@4.3.3': + optional: true + + '@tailwindcss/oxide-linux-arm64-gnu@4.3.3': + optional: true + + '@tailwindcss/oxide-linux-arm64-musl@4.3.3': + optional: true + + '@tailwindcss/oxide-linux-x64-gnu@4.3.3': + optional: true + + '@tailwindcss/oxide-linux-x64-musl@4.3.3': + optional: true + + '@tailwindcss/oxide-wasm32-wasi@4.3.3': + optional: true + + '@tailwindcss/oxide-win32-arm64-msvc@4.3.3': + optional: true + + '@tailwindcss/oxide-win32-x64-msvc@4.3.3': + optional: true + + '@tailwindcss/oxide@4.3.3': + optionalDependencies: + '@tailwindcss/oxide-android-arm64': 4.3.3 + '@tailwindcss/oxide-darwin-arm64': 4.3.3 + '@tailwindcss/oxide-darwin-x64': 4.3.3 + '@tailwindcss/oxide-freebsd-x64': 4.3.3 + '@tailwindcss/oxide-linux-arm-gnueabihf': 4.3.3 + '@tailwindcss/oxide-linux-arm64-gnu': 4.3.3 + '@tailwindcss/oxide-linux-arm64-musl': 4.3.3 + '@tailwindcss/oxide-linux-x64-gnu': 4.3.3 + '@tailwindcss/oxide-linux-x64-musl': 4.3.3 + '@tailwindcss/oxide-wasm32-wasi': 4.3.3 + '@tailwindcss/oxide-win32-arm64-msvc': 4.3.3 + '@tailwindcss/oxide-win32-x64-msvc': 4.3.3 + + '@tailwindcss/vite@4.3.3(vite@7.3.7(@types/node@22.20.5)(jiti@2.7.0)(lightningcss@1.32.0))': + dependencies: + '@tailwindcss/node': 4.3.3 + '@tailwindcss/oxide': 4.3.3 + tailwindcss: 4.3.3 + vite: 7.3.7(@types/node@22.20.5)(jiti@2.7.0)(lightningcss@1.32.0) + + '@tanstack/virtual-core@3.19.6': {} + + '@tanstack/vue-virtual@3.13.47(vue@3.5.44(typescript@5.9.3))': + dependencies: + '@tanstack/virtual-core': 3.19.6 + vue: 3.5.44(typescript@5.9.3) + + '@types/argparse@1.0.38': {} + + '@types/chai@5.2.3': + dependencies: + '@types/deep-eql': 4.0.2 + assertion-error: 2.0.1 + + '@types/deep-eql@4.0.2': {} + + '@types/estree@1.0.9': {} + + '@types/hast@3.0.5': + dependencies: + '@types/unist': 3.0.3 + + '@types/linkify-it@5.0.0': {} + + '@types/markdown-it@14.2.0': + dependencies: + '@types/linkify-it': 5.0.0 + '@types/mdurl': 2.0.0 + + '@types/mdast@4.0.4': + dependencies: + '@types/unist': 3.0.3 + + '@types/mdurl@2.0.0': {} + + '@types/node@22.20.5': + dependencies: + undici-types: 6.21.0 + + '@types/unist@3.0.3': {} + + '@types/web-bluetooth@0.0.21': {} + + '@ungap/structured-clone@1.4.0': {} + + '@vitejs/plugin-vue@5.2.4(vite@5.4.21(@types/node@22.20.5)(lightningcss@1.32.0))(vue@3.5.44(typescript@5.9.3))': + dependencies: + vite: 5.4.21(@types/node@22.20.5)(lightningcss@1.32.0) + vue: 3.5.44(typescript@5.9.3) + + '@vitejs/plugin-vue@6.0.10(vite@7.3.7(@types/node@22.20.5)(jiti@2.7.0)(lightningcss@1.32.0))(vue@3.5.44(typescript@5.9.3))': + dependencies: + '@rolldown/pluginutils': 1.0.1 + vite: 7.3.7(@types/node@22.20.5)(jiti@2.7.0)(lightningcss@1.32.0) + vue: 3.5.44(typescript@5.9.3) + + '@vitest/expect@3.2.7': + dependencies: + '@types/chai': 5.2.3 + '@vitest/spy': 3.2.7 + '@vitest/utils': 3.2.7 + chai: 5.3.3 + tinyrainbow: 2.0.0 + + '@vitest/mocker@3.2.7(vite@7.3.7(@types/node@22.20.5)(jiti@2.7.0)(lightningcss@1.32.0))': + dependencies: + '@vitest/spy': 3.2.7 + estree-walker: 3.0.3 + magic-string: 0.30.21 + optionalDependencies: + vite: 7.3.7(@types/node@22.20.5)(jiti@2.7.0)(lightningcss@1.32.0) + + '@vitest/pretty-format@3.2.7': + dependencies: + tinyrainbow: 2.0.0 + + '@vitest/runner@3.2.7': + dependencies: + '@vitest/utils': 3.2.7 + pathe: 2.0.3 + strip-literal: 3.1.0 + + '@vitest/snapshot@3.2.7': + dependencies: + '@vitest/pretty-format': 3.2.7 + magic-string: 0.30.21 + pathe: 2.0.3 + + '@vitest/spy@3.2.7': + dependencies: + tinyspy: 4.0.6 + + '@vitest/utils@3.2.7': + dependencies: + '@vitest/pretty-format': 3.2.7 + loupe: 3.2.1 + tinyrainbow: 2.0.0 + + '@volar/language-core@2.4.28': + dependencies: + '@volar/source-map': 2.4.28 + + '@volar/source-map@2.4.28': {} + + '@volar/typescript@2.4.28(typescript@5.9.3)': + dependencies: + '@volar/language-core': 2.4.28 + path-browserify: 1.0.1 + vscode-uri: 3.2.0 + optionalDependencies: + typescript: 5.9.3 + + '@vue/compiler-core@3.5.44': + dependencies: + '@babel/parser': 7.29.9 + '@vue/shared': 3.5.44 + entities: 7.0.1 + estree-walker: 2.0.2 + source-map-js: 1.2.2 + + '@vue/compiler-dom@3.5.44': + dependencies: + '@vue/compiler-core': 3.5.44 + '@vue/shared': 3.5.44 + + '@vue/compiler-sfc@3.5.44': + dependencies: + '@babel/parser': 7.29.9 + '@vue/compiler-core': 3.5.44 + '@vue/compiler-dom': 3.5.44 + '@vue/compiler-ssr': 3.5.44 + '@vue/shared': 3.5.44 + estree-walker: 2.0.2 + magic-string: 0.30.21 + postcss: 8.5.30 + source-map-js: 1.2.2 + + '@vue/compiler-ssr@3.5.44': + dependencies: + '@vue/compiler-dom': 3.5.44 + '@vue/shared': 3.5.44 + + '@vue/compiler-vue2@2.7.16': + dependencies: + de-indent: 1.0.2 + he: 1.2.0 + + '@vue/devtools-api@7.7.10': + dependencies: + '@vue/devtools-kit': 7.7.10 + + '@vue/devtools-kit@7.7.10': + dependencies: + '@vue/devtools-shared': 7.7.10 + birpc: 2.9.0 + hookable: 5.5.3 + mitt: 3.0.1 + perfect-debounce: 1.0.0 + speakingurl: 14.0.1 + superjson: 2.2.6 + + '@vue/devtools-shared@7.7.10': + dependencies: + rfdc: 1.4.1 + + '@vue/language-core@2.2.0(typescript@5.9.3)': + dependencies: + '@volar/language-core': 2.4.28 + '@vue/compiler-dom': 3.5.44 + '@vue/compiler-vue2': 2.7.16 + '@vue/shared': 3.5.44 + alien-signals: 0.4.14 + minimatch: 9.0.9 + muggle-string: 0.4.1 + path-browserify: 1.0.1 + optionalDependencies: + typescript: 5.9.3 + + '@vue/language-core@3.3.13': + dependencies: + '@volar/language-core': 2.4.28 + '@vue/compiler-dom': 3.5.44 + '@vue/shared': 3.5.44 + alien-signals: 3.2.1 + muggle-string: 0.4.1 + path-browserify: 1.0.1 + picomatch: 4.0.7 + + '@vue/reactivity@3.5.44': + dependencies: + '@vue/shared': 3.5.44 + + '@vue/runtime-core@3.5.44': + dependencies: + '@vue/reactivity': 3.5.44 + '@vue/shared': 3.5.44 + + '@vue/runtime-dom@3.5.44': + dependencies: + '@vue/reactivity': 3.5.44 + '@vue/runtime-core': 3.5.44 + '@vue/shared': 3.5.44 + csstype: 3.2.3 + + '@vue/server-renderer@3.5.44': + dependencies: + '@vue/compiler-ssr': 3.5.44 + '@vue/runtime-dom': 3.5.44 + '@vue/shared': 3.5.44 + + '@vue/shared@3.5.44': {} + + '@vue/test-utils@2.5.1(@vue/compiler-dom@3.5.44)(@vue/server-renderer@3.5.44)(vue@3.5.44(typescript@5.9.3))': + dependencies: + '@vue/compiler-dom': 3.5.44 + js-beautify: 2.0.3 + vue: 3.5.44(typescript@5.9.3) + vue-component-type-helpers: 3.3.13 + optionalDependencies: + '@vue/server-renderer': 3.5.44 + + '@vueuse/core@12.8.2(typescript@5.9.3)': + dependencies: + '@types/web-bluetooth': 0.0.21 + '@vueuse/metadata': 12.8.2 + '@vueuse/shared': 12.8.2(typescript@5.9.3) + vue: 3.5.44(typescript@5.9.3) + transitivePeerDependencies: + - typescript + + '@vueuse/core@14.4.0(vue@3.5.44(typescript@5.9.3))': + dependencies: + '@types/web-bluetooth': 0.0.21 + '@vueuse/metadata': 14.4.0 + '@vueuse/shared': 14.4.0(vue@3.5.44(typescript@5.9.3)) + vue: 3.5.44(typescript@5.9.3) + + '@vueuse/integrations@12.8.2(focus-trap@7.8.0)(typescript@5.9.3)': + dependencies: + '@vueuse/core': 12.8.2(typescript@5.9.3) + '@vueuse/shared': 12.8.2(typescript@5.9.3) + vue: 3.5.44(typescript@5.9.3) + optionalDependencies: + focus-trap: 7.8.0 + transitivePeerDependencies: + - typescript + + '@vueuse/metadata@12.8.2': {} + + '@vueuse/metadata@14.4.0': {} + + '@vueuse/shared@12.8.2(typescript@5.9.3)': + dependencies: + vue: 3.5.44(typescript@5.9.3) + transitivePeerDependencies: + - typescript + + '@vueuse/shared@14.4.0(vue@3.5.44(typescript@5.9.3))': + dependencies: + vue: 3.5.44(typescript@5.9.3) + + abbrev@5.0.0: {} + + acorn@8.19.0: {} + + agent-base@7.1.4: {} + + ajv-draft-04@1.0.0(ajv@8.20.0): + optionalDependencies: + ajv: 8.20.0 + + ajv-formats@3.0.1(ajv@8.20.0): + optionalDependencies: + ajv: 8.20.0 + + ajv@8.18.0: + dependencies: + fast-deep-equal: 3.1.3 + fast-uri: 3.1.8 + json-schema-traverse: 1.0.0 + require-from-string: 2.0.2 + + ajv@8.20.0: + dependencies: + fast-deep-equal: 3.1.3 + fast-uri: 3.1.8 + json-schema-traverse: 1.0.0 + require-from-string: 2.0.2 + + algoliasearch@5.60.0: + dependencies: + '@algolia/abtesting': 1.26.0 + '@algolia/client-abtesting': 5.60.0 + '@algolia/client-analytics': 5.60.0 + '@algolia/client-common': 5.60.0 + '@algolia/client-insights': 5.60.0 + '@algolia/client-personalization': 5.60.0 + '@algolia/client-query-suggestions': 5.60.0 + '@algolia/client-search': 5.60.0 + '@algolia/ingestion': 1.60.0 + '@algolia/monitoring': 1.60.0 + '@algolia/recommend': 5.60.0 + '@algolia/requester-browser-xhr': 5.60.0 + '@algolia/requester-fetch': 5.60.0 + '@algolia/requester-node-http': 5.60.0 + + alien-signals@0.4.14: {} + + alien-signals@3.2.1: {} + + argparse@1.0.10: + dependencies: + sprintf-js: 1.0.3 + + aria-hidden@1.2.6: + dependencies: + tslib: 2.8.1 + + assertion-error@2.0.1: {} + + balanced-match@1.0.2: {} + + balanced-match@4.0.4: {} + + birpc@2.9.0: {} + + brace-expansion@2.1.7: + dependencies: + balanced-match: 1.0.2 + + brace-expansion@5.0.12: + dependencies: + balanced-match: 4.0.4 + + cac@6.7.14: {} + + ccount@2.0.1: {} + + chai@5.3.3: + dependencies: + assertion-error: 2.0.1 + check-error: 2.1.3 + deep-eql: 5.0.2 + loupe: 3.2.1 + pathval: 2.0.1 + + character-entities-html4@2.1.0: {} + + character-entities-legacy@3.0.0: {} + + check-error@2.1.3: {} + + comma-separated-tokens@2.0.3: {} + + commander@14.0.3: {} + + compare-versions@6.1.1: {} + + confbox@0.1.8: {} + + confbox@0.3.1: {} + + config-chain@1.1.13: + dependencies: + ini: 1.3.8 + proto-list: 1.2.4 + + copy-anything@4.1.5: {} + + cssstyle@4.6.0: + dependencies: + '@asamuzakjp/css-color': 3.2.0 + rrweb-cssom: 0.8.0 + + csstype@3.2.3: {} + + data-urls@5.0.0: + dependencies: + whatwg-mimetype: 4.0.0 + whatwg-url: 14.2.0 + + de-indent@1.0.2: {} + + debug@4.4.3(supports-color@8.1.1): + dependencies: + ms: 2.1.3 + optionalDependencies: + supports-color: 8.1.1 + + decimal.js@10.6.0: {} + + deep-eql@5.0.2: {} + + defu@6.1.7: {} + + dequal@2.0.3: {} + + detect-libc@2.1.2: {} + + devlop@1.1.0: + dependencies: + dequal: 2.0.3 + + diff@8.0.4: {} + + editorconfig@3.0.2: + dependencies: + '@one-ini/wasm': 0.2.1 + commander: 14.0.3 + minimatch: 10.2.6 + semver: 7.8.5 + + emoji-regex-xs@1.0.0: {} + + enhanced-resolve@5.26.0: + dependencies: + graceful-fs: 4.2.11 + tapable: 2.3.3 + + entities@6.0.1: {} + + entities@7.0.1: {} + + es-errors@1.3.0: {} + + es-module-lexer@1.7.0: {} + + esbuild@0.21.5: + optionalDependencies: + '@esbuild/aix-ppc64': 0.21.5 + '@esbuild/android-arm': 0.21.5 + '@esbuild/android-arm64': 0.21.5 + '@esbuild/android-x64': 0.21.5 + '@esbuild/darwin-arm64': 0.21.5 + '@esbuild/darwin-x64': 0.21.5 + '@esbuild/freebsd-arm64': 0.21.5 + '@esbuild/freebsd-x64': 0.21.5 + '@esbuild/linux-arm': 0.21.5 + '@esbuild/linux-arm64': 0.21.5 + '@esbuild/linux-ia32': 0.21.5 + '@esbuild/linux-loong64': 0.21.5 + '@esbuild/linux-mips64el': 0.21.5 + '@esbuild/linux-ppc64': 0.21.5 + '@esbuild/linux-riscv64': 0.21.5 + '@esbuild/linux-s390x': 0.21.5 + '@esbuild/linux-x64': 0.21.5 + '@esbuild/netbsd-x64': 0.21.5 + '@esbuild/openbsd-x64': 0.21.5 + '@esbuild/sunos-x64': 0.21.5 + '@esbuild/win32-arm64': 0.21.5 + '@esbuild/win32-ia32': 0.21.5 + '@esbuild/win32-x64': 0.21.5 + + esbuild@0.28.2: + optionalDependencies: + '@esbuild/aix-ppc64': 0.28.2 + '@esbuild/android-arm': 0.28.2 + '@esbuild/android-arm64': 0.28.2 + '@esbuild/android-x64': 0.28.2 + '@esbuild/darwin-arm64': 0.28.2 + '@esbuild/darwin-x64': 0.28.2 + '@esbuild/freebsd-arm64': 0.28.2 + '@esbuild/freebsd-x64': 0.28.2 + '@esbuild/linux-arm': 0.28.2 + '@esbuild/linux-arm64': 0.28.2 + '@esbuild/linux-ia32': 0.28.2 + '@esbuild/linux-loong64': 0.28.2 + '@esbuild/linux-mips64el': 0.28.2 + '@esbuild/linux-ppc64': 0.28.2 + '@esbuild/linux-riscv64': 0.28.2 + '@esbuild/linux-s390x': 0.28.2 + '@esbuild/linux-x64': 0.28.2 + '@esbuild/netbsd-arm64': 0.28.2 + '@esbuild/netbsd-x64': 0.28.2 + '@esbuild/openbsd-arm64': 0.28.2 + '@esbuild/openbsd-x64': 0.28.2 + '@esbuild/openharmony-arm64': 0.28.2 + '@esbuild/sunos-x64': 0.28.2 + '@esbuild/win32-arm64': 0.28.2 + '@esbuild/win32-ia32': 0.28.2 + '@esbuild/win32-x64': 0.28.2 + + estree-walker@2.0.2: {} + + estree-walker@3.0.3: + dependencies: + '@types/estree': 1.0.9 + + expect-type@1.4.0: {} + + exsolve@1.1.3: {} + + fast-deep-equal@3.1.3: {} + + fast-uri@3.1.8: {} + + fdir@6.5.0(picomatch@4.0.7): + optionalDependencies: + picomatch: 4.0.7 + + focus-trap@7.8.0: + dependencies: + tabbable: 6.5.0 + + fs-extra@11.3.6: + dependencies: + graceful-fs: 4.2.11 + jsonfile: 6.2.1 + universalify: 2.0.1 + + fsevents@2.3.3: + optional: true + + function-bind@1.1.2: {} + + glob@13.0.6: + dependencies: + minimatch: 10.2.6 + minipass: 7.1.3 + path-scurry: 2.0.2 + + graceful-fs@4.2.11: {} + + has-flag@4.0.0: {} + + hasown@2.0.4: + dependencies: + function-bind: 1.1.2 + + hast-util-to-html@9.0.5: + dependencies: + '@types/hast': 3.0.5 + '@types/unist': 3.0.3 + ccount: 2.0.1 + comma-separated-tokens: 2.0.3 + hast-util-whitespace: 3.0.0 + html-void-elements: 3.0.0 + mdast-util-to-hast: 13.2.1 + property-information: 7.2.0 + space-separated-tokens: 2.0.2 + stringify-entities: 4.0.4 + zwitch: 2.0.4 + + hast-util-whitespace@3.0.0: + dependencies: + '@types/hast': 3.0.5 + + he@1.2.0: {} + + hookable@5.5.3: {} + + html-encoding-sniffer@4.0.0: + dependencies: + whatwg-encoding: 3.1.1 + + html-void-elements@3.0.0: {} + + http-proxy-agent@7.0.2(supports-color@8.1.1): + dependencies: + agent-base: 7.1.4 + debug: 4.4.3(supports-color@8.1.1) + transitivePeerDependencies: + - supports-color + + https-proxy-agent@7.0.6(supports-color@8.1.1): + dependencies: + agent-base: 7.1.4 + debug: 4.4.3(supports-color@8.1.1) + transitivePeerDependencies: + - supports-color + + iconv-lite@0.6.3: + dependencies: + safer-buffer: 2.1.2 + + import-lazy@4.0.0: {} + + ini@1.3.8: {} + + is-core-module@2.17.0: + dependencies: + hasown: 2.0.4 + + is-potential-custom-element-name@1.0.1: {} + + jiti@2.7.0: {} + + jju@1.4.0: {} + + js-beautify@2.0.3: + dependencies: + config-chain: 1.1.13 + editorconfig: 3.0.2 + glob: 13.0.6 + js-cookie: 3.0.8 + nopt: 10.0.1 + + js-cookie@3.0.8: {} + + js-tokens@9.0.1: {} + + jsdom@26.1.0(supports-color@8.1.1): + dependencies: + cssstyle: 4.6.0 + data-urls: 5.0.0 + decimal.js: 10.6.0 + html-encoding-sniffer: 4.0.0 + http-proxy-agent: 7.0.2(supports-color@8.1.1) + https-proxy-agent: 7.0.6(supports-color@8.1.1) + is-potential-custom-element-name: 1.0.1 + nwsapi: 2.2.28 + parse5: 7.3.0 + rrweb-cssom: 0.8.0 + saxes: 6.0.0 + symbol-tree: 3.2.4 + tough-cookie: 5.1.2 + w3c-xmlserializer: 5.0.0 + webidl-conversions: 7.0.0 + whatwg-encoding: 3.1.1 + whatwg-mimetype: 4.0.0 + whatwg-url: 14.2.0 + ws: 8.22.0 + xml-name-validator: 5.0.0 + transitivePeerDependencies: + - bufferutil + - supports-color + - utf-8-validate + + json-schema-traverse@1.0.0: {} + + jsonfile@6.2.1: + dependencies: + universalify: 2.0.1 + optionalDependencies: + graceful-fs: 4.2.11 + + kolorist@1.8.0: {} + + lightningcss-android-arm64@1.32.0: + optional: true + + lightningcss-darwin-arm64@1.32.0: + optional: true + + lightningcss-darwin-x64@1.32.0: + optional: true + + lightningcss-freebsd-x64@1.32.0: + optional: true + + lightningcss-linux-arm-gnueabihf@1.32.0: + optional: true + + lightningcss-linux-arm64-gnu@1.32.0: + optional: true + + lightningcss-linux-arm64-musl@1.32.0: + optional: true + + lightningcss-linux-x64-gnu@1.32.0: + optional: true + + lightningcss-linux-x64-musl@1.32.0: + optional: true + + lightningcss-win32-arm64-msvc@1.32.0: + optional: true + + lightningcss-win32-x64-msvc@1.32.0: + optional: true + + lightningcss@1.32.0: + dependencies: + detect-libc: 2.1.2 + optionalDependencies: + lightningcss-android-arm64: 1.32.0 + lightningcss-darwin-arm64: 1.32.0 + lightningcss-darwin-x64: 1.32.0 + lightningcss-freebsd-x64: 1.32.0 + lightningcss-linux-arm-gnueabihf: 1.32.0 + lightningcss-linux-arm64-gnu: 1.32.0 + lightningcss-linux-arm64-musl: 1.32.0 + lightningcss-linux-x64-gnu: 1.32.0 + lightningcss-linux-x64-musl: 1.32.0 + lightningcss-win32-arm64-msvc: 1.32.0 + lightningcss-win32-x64-msvc: 1.32.0 + + local-pkg@1.2.1: + dependencies: + mlly: 1.8.2 + pkg-types: 2.3.3 + quansync: 0.2.11 + + loupe@3.2.1: {} + + lru-cache@10.4.3: {} + + lru-cache@11.5.3: {} + + magic-string@0.30.21: + dependencies: + '@jridgewell/sourcemap-codec': 1.6.0 + + mark.js@8.11.1: {} + + mdast-util-to-hast@13.2.1: + dependencies: + '@types/hast': 3.0.5 + '@types/mdast': 4.0.4 + '@ungap/structured-clone': 1.4.0 + devlop: 1.1.0 + micromark-util-sanitize-uri: 2.0.1 + trim-lines: 3.0.1 + unist-util-position: 5.0.0 + unist-util-visit: 5.1.0 + vfile: 6.0.3 + + micromark-util-character@2.1.1: + dependencies: + micromark-util-symbol: 2.0.1 + micromark-util-types: 2.0.3 + + micromark-util-encode@2.0.1: {} + + micromark-util-sanitize-uri@2.0.1: + dependencies: + micromark-util-character: 2.1.1 + micromark-util-encode: 2.0.1 + micromark-util-symbol: 2.0.1 + + micromark-util-symbol@2.0.1: {} + + micromark-util-types@2.0.3: {} + + minimatch@10.2.3: + dependencies: + brace-expansion: 5.0.12 + + minimatch@10.2.6: + dependencies: + brace-expansion: 5.0.12 + + minimatch@9.0.9: + dependencies: + brace-expansion: 2.1.7 + + minipass@7.1.3: {} + + minisearch@7.2.0: {} + + mitt@3.0.1: {} + + mlly@1.8.2: + dependencies: + acorn: 8.19.0 + pathe: 2.0.3 + pkg-types: 1.3.1 + ufo: 1.6.4 + + ms@2.1.3: {} + + muggle-string@0.4.1: {} + + nanoid@3.3.20: {} + + nopt@10.0.1: + dependencies: + abbrev: 5.0.0 + + nwsapi@2.2.28: {} + + ohash@2.0.12: {} + + oniguruma-to-es@3.1.1: + dependencies: + emoji-regex-xs: 1.0.0 + regex: 6.1.0 + regex-recursion: 6.0.2 + + parse5@7.3.0: + dependencies: + entities: 6.0.1 + + path-browserify@1.0.1: {} + + path-parse@1.0.7: {} + + path-scurry@2.0.2: + dependencies: + lru-cache: 11.5.3 + minipass: 7.1.3 + + pathe@2.0.3: {} + + pathval@2.0.1: {} + + perfect-debounce@1.0.0: {} + + picocolors@1.1.1: {} + + picomatch@4.0.7: {} + + pkg-types@1.3.1: + dependencies: + confbox: 0.1.8 + mlly: 1.8.2 + pathe: 2.0.3 + + pkg-types@2.3.3: + dependencies: + confbox: 0.3.1 + exsolve: 1.1.3 + pathe: 2.0.3 + + postcss@8.5.30: + dependencies: + nanoid: 3.3.20 + picocolors: 1.1.1 + source-map-js: 1.2.2 + + preact@10.29.8: {} + + prettier@3.9.10: {} + + property-information@7.2.0: {} + + proto-list@1.2.4: {} + + punycode@2.3.1: {} + + quansync@0.2.11: {} + + regex-recursion@6.0.2: + dependencies: + regex-utilities: 2.3.0 + + regex-utilities@2.3.0: {} + + regex@6.1.0: + dependencies: + regex-utilities: 2.3.0 + + reka-ui@2.11.0(vue@3.5.44(typescript@5.9.3)): + dependencies: + '@floating-ui/vue': 2.0.1(vue@3.5.44(typescript@5.9.3)) + '@internationalized/date': 3.12.4 + '@internationalized/number': 3.6.9 + '@tanstack/vue-virtual': 3.13.47(vue@3.5.44(typescript@5.9.3)) + '@vueuse/core': 14.4.0(vue@3.5.44(typescript@5.9.3)) + '@vueuse/shared': 14.4.0(vue@3.5.44(typescript@5.9.3)) + aria-hidden: 1.2.6 + defu: 6.1.7 + ohash: 2.0.12 + vue: 3.5.44(typescript@5.9.3) + + require-from-string@2.0.2: {} + + resolve@1.22.13: + dependencies: + es-errors: 1.3.0 + is-core-module: 2.17.0 + path-parse: 1.0.7 + supports-preserve-symlinks-flag: 1.0.0 + + rfdc@1.4.1: {} + + rollup@4.64.9: + dependencies: + '@types/estree': 1.0.9 + optionalDependencies: + '@napi-rs/lzma-linux-x64-gnu': 1.5.1 + '@rollup/rollup-android-arm-eabi': 4.64.9 + '@rollup/rollup-android-arm64': 4.64.9 + '@rollup/rollup-darwin-arm64': 4.64.9 + '@rollup/rollup-darwin-x64': 4.64.9 + '@rollup/rollup-freebsd-arm64': 4.64.9 + '@rollup/rollup-freebsd-x64': 4.64.9 + '@rollup/rollup-linux-arm-gnueabihf': 4.64.9 + '@rollup/rollup-linux-arm-musleabihf': 4.64.9 + '@rollup/rollup-linux-arm64-gnu': 4.64.9 + '@rollup/rollup-linux-arm64-musl': 4.64.9 + '@rollup/rollup-linux-loong64-gnu': 4.64.9 + '@rollup/rollup-linux-loong64-musl': 4.64.9 + '@rollup/rollup-linux-ppc64-gnu': 4.64.9 + '@rollup/rollup-linux-ppc64-musl': 4.64.9 + '@rollup/rollup-linux-riscv64-gnu': 4.64.9 + '@rollup/rollup-linux-riscv64-musl': 4.64.9 + '@rollup/rollup-linux-s390x-gnu': 4.64.9 + '@rollup/rollup-linux-x64-gnu': 4.64.9 + '@rollup/rollup-linux-x64-musl': 4.64.9 + '@rollup/rollup-openbsd-x64': 4.64.9 + '@rollup/rollup-openharmony-arm64': 4.64.9 + '@rollup/rollup-win32-arm64-msvc': 4.64.9 + '@rollup/rollup-win32-ia32-msvc': 4.64.9 + '@rollup/rollup-win32-x64-gnu': 4.64.9 + '@rollup/rollup-win32-x64-msvc': 4.64.9 + fsevents: 2.3.3 + + rrweb-cssom@0.8.0: {} + + safer-buffer@2.1.2: {} + + saxes@6.0.0: + dependencies: + xmlchars: 2.2.0 + + search-insights@2.17.3: {} + + semver@7.7.4: {} + + semver@7.8.5: {} + + shiki@2.5.0: + dependencies: + '@shikijs/core': 2.5.0 + '@shikijs/engine-javascript': 2.5.0 + '@shikijs/engine-oniguruma': 2.5.0 + '@shikijs/langs': 2.5.0 + '@shikijs/themes': 2.5.0 + '@shikijs/types': 2.5.0 + '@shikijs/vscode-textmate': 10.0.2 + '@types/hast': 3.0.5 + + siginfo@2.0.0: {} + + source-map-js@1.2.2: {} + + source-map@0.6.1: {} + + space-separated-tokens@2.0.2: {} + + speakingurl@14.0.1: {} + + sprintf-js@1.0.3: {} + + stackback@0.0.2: {} + + std-env@3.10.0: {} + + string-argv@0.3.2: {} + + stringify-entities@4.0.4: + dependencies: + character-entities-html4: 2.1.0 + character-entities-legacy: 3.0.0 + + strip-literal@3.1.0: + dependencies: + js-tokens: 9.0.1 + + superjson@2.2.6: + dependencies: + copy-anything: 4.1.5 + + supports-color@8.1.1: + dependencies: + has-flag: 4.0.0 + + supports-preserve-symlinks-flag@1.0.0: {} + + symbol-tree@3.2.4: {} + + tabbable@6.5.0: {} + + tailwind-variants@3.3.1(tailwindcss@4.3.3): + optionalDependencies: + tailwindcss: 4.3.3 + + tailwindcss@4.3.3: {} + + tapable@2.3.3: {} + + tinybench@2.9.0: {} + + tinyexec@0.3.2: {} + + tinyglobby@0.2.17: + dependencies: + fdir: 6.5.0(picomatch@4.0.7) + picomatch: 4.0.7 + + tinypool@1.1.1: {} + + tinyrainbow@2.0.0: {} + + tinyspy@4.0.6: {} + + tldts-core@6.1.86: {} + + tldts@6.1.86: + dependencies: + tldts-core: 6.1.86 + + tough-cookie@5.1.2: + dependencies: + tldts: 6.1.86 + + tr46@5.1.1: + dependencies: + punycode: 2.3.1 + + trim-lines@3.0.1: {} + + tslib@2.8.1: {} + + typescript@5.9.3: {} + + ufo@1.6.4: {} + + undici-types@6.21.0: {} + + unist-util-is@6.0.1: + dependencies: + '@types/unist': 3.0.3 + + unist-util-position@5.0.0: + dependencies: + '@types/unist': 3.0.3 + + unist-util-stringify-position@4.0.0: + dependencies: + '@types/unist': 3.0.3 + + unist-util-visit-parents@6.0.2: + dependencies: + '@types/unist': 3.0.3 + unist-util-is: 6.0.1 + + unist-util-visit@5.1.0: + dependencies: + '@types/unist': 3.0.3 + unist-util-is: 6.0.1 + unist-util-visit-parents: 6.0.2 + + universalify@2.0.1: {} + + vfile-message@4.0.3: + dependencies: + '@types/unist': 3.0.3 + unist-util-stringify-position: 4.0.0 + + vfile@6.0.3: + dependencies: + '@types/unist': 3.0.3 + vfile-message: 4.0.3 + + vite-node@3.2.4(@types/node@22.20.5)(jiti@2.7.0)(lightningcss@1.32.0)(supports-color@8.1.1): + dependencies: + cac: 6.7.14 + debug: 4.4.3(supports-color@8.1.1) + es-module-lexer: 1.7.0 + pathe: 2.0.3 + vite: 7.3.7(@types/node@22.20.5)(jiti@2.7.0)(lightningcss@1.32.0) + transitivePeerDependencies: + - '@types/node' + - jiti + - less + - lightningcss + - sass + - sass-embedded + - stylus + - sugarss + - supports-color + - terser + - tsx + - yaml + + vite-plugin-dts@4.5.4(@types/node@22.20.5)(rollup@4.64.9)(supports-color@8.1.1)(typescript@5.9.3)(vite@7.3.7(@types/node@22.20.5)(jiti@2.7.0)(lightningcss@1.32.0)): + dependencies: + '@microsoft/api-extractor': 7.59.4(@types/node@22.20.5) + '@rollup/pluginutils': 5.4.0(rollup@4.64.9) + '@volar/typescript': 2.4.28(typescript@5.9.3) + '@vue/language-core': 2.2.0(typescript@5.9.3) + compare-versions: 6.1.1 + debug: 4.4.3(supports-color@8.1.1) + kolorist: 1.8.0 + local-pkg: 1.2.1 + magic-string: 0.30.21 + typescript: 5.9.3 + optionalDependencies: + vite: 7.3.7(@types/node@22.20.5)(jiti@2.7.0)(lightningcss@1.32.0) + transitivePeerDependencies: + - '@types/node' + - rollup + - supports-color + + vite@5.4.21(@types/node@22.20.5)(lightningcss@1.32.0): + dependencies: + esbuild: 0.21.5 + postcss: 8.5.30 + rollup: 4.64.9 + optionalDependencies: + '@types/node': 22.20.5 + fsevents: 2.3.3 + lightningcss: 1.32.0 + + vite@7.3.7(@types/node@22.20.5)(jiti@2.7.0)(lightningcss@1.32.0): + dependencies: + esbuild: 0.28.2 + fdir: 6.5.0(picomatch@4.0.7) + picomatch: 4.0.7 + postcss: 8.5.30 + rollup: 4.64.9 + tinyglobby: 0.2.17 + optionalDependencies: + '@types/node': 22.20.5 + fsevents: 2.3.3 + jiti: 2.7.0 + lightningcss: 1.32.0 + + vitepress@1.6.4(@algolia/client-search@5.60.0)(@types/node@22.20.5)(lightningcss@1.32.0)(postcss@8.5.30)(search-insights@2.17.3)(typescript@5.9.3): + dependencies: + '@docsearch/css': 3.8.2 + '@docsearch/js': 3.8.2(@algolia/client-search@5.60.0)(search-insights@2.17.3) + '@iconify-json/simple-icons': 1.2.100 + '@shikijs/core': 2.5.0 + '@shikijs/transformers': 2.5.0 + '@shikijs/types': 2.5.0 + '@types/markdown-it': 14.2.0 + '@vitejs/plugin-vue': 5.2.4(vite@5.4.21(@types/node@22.20.5)(lightningcss@1.32.0))(vue@3.5.44(typescript@5.9.3)) + '@vue/devtools-api': 7.7.10 + '@vue/shared': 3.5.44 + '@vueuse/core': 12.8.2(typescript@5.9.3) + '@vueuse/integrations': 12.8.2(focus-trap@7.8.0)(typescript@5.9.3) + focus-trap: 7.8.0 + mark.js: 8.11.1 + minisearch: 7.2.0 + shiki: 2.5.0 + vite: 5.4.21(@types/node@22.20.5)(lightningcss@1.32.0) + vue: 3.5.44(typescript@5.9.3) + optionalDependencies: + postcss: 8.5.30 + transitivePeerDependencies: + - '@algolia/client-search' + - '@types/node' + - '@types/react' + - async-validator + - axios + - change-case + - drauu + - fuse.js + - idb-keyval + - jwt-decode + - less + - lightningcss + - nprogress + - preact-render-to-string + - qrcode + - react + - react-dom + - sass + - sass-embedded + - search-insights + - sortablejs + - stylus + - sugarss + - terser + - typescript + - universal-cookie + + vitest@3.2.7(@types/node@22.20.5)(jiti@2.7.0)(jsdom@26.1.0(supports-color@8.1.1))(lightningcss@1.32.0)(supports-color@8.1.1): + dependencies: + '@types/chai': 5.2.3 + '@vitest/expect': 3.2.7 + '@vitest/mocker': 3.2.7(vite@7.3.7(@types/node@22.20.5)(jiti@2.7.0)(lightningcss@1.32.0)) + '@vitest/pretty-format': 3.2.7 + '@vitest/runner': 3.2.7 + '@vitest/snapshot': 3.2.7 + '@vitest/spy': 3.2.7 + '@vitest/utils': 3.2.7 + chai: 5.3.3 + debug: 4.4.3(supports-color@8.1.1) + expect-type: 1.4.0 + magic-string: 0.30.21 + pathe: 2.0.3 + picomatch: 4.0.7 + std-env: 3.10.0 + tinybench: 2.9.0 + tinyexec: 0.3.2 + tinyglobby: 0.2.17 + tinypool: 1.1.1 + tinyrainbow: 2.0.0 + vite: 7.3.7(@types/node@22.20.5)(jiti@2.7.0)(lightningcss@1.32.0) + vite-node: 3.2.4(@types/node@22.20.5)(jiti@2.7.0)(lightningcss@1.32.0)(supports-color@8.1.1) + why-is-node-running: 2.3.0 + optionalDependencies: + '@types/node': 22.20.5 + jsdom: 26.1.0(supports-color@8.1.1) + transitivePeerDependencies: + - jiti + - less + - lightningcss + - msw + - sass + - sass-embedded + - stylus + - sugarss + - supports-color + - terser + - tsx + - yaml + + vscode-uri@3.2.0: {} + + vue-component-type-helpers@3.3.13: {} + + vue-tsc@3.3.13(typescript@5.9.3): + dependencies: + '@volar/typescript': 2.4.28(typescript@5.9.3) + '@vue/language-core': 3.3.13 + typescript: 5.9.3 + + vue@3.5.44(typescript@5.9.3): + dependencies: + '@vue/compiler-dom': 3.5.44 + '@vue/compiler-sfc': 3.5.44 + '@vue/runtime-dom': 3.5.44 + '@vue/server-renderer': 3.5.44 + '@vue/shared': 3.5.44 + optionalDependencies: + typescript: 5.9.3 + + w3c-xmlserializer@5.0.0: + dependencies: + xml-name-validator: 5.0.0 + + webidl-conversions@7.0.0: {} + + whatwg-encoding@3.1.1: + dependencies: + iconv-lite: 0.6.3 + + whatwg-mimetype@4.0.0: {} + + whatwg-url@14.2.0: + dependencies: + tr46: 5.1.1 + webidl-conversions: 7.0.0 + + why-is-node-running@2.3.0: + dependencies: + siginfo: 2.0.0 + stackback: 0.0.2 + + ws@8.22.0: {} + + xml-name-validator@5.0.0: {} + + xmlchars@2.2.0: {} + + zwitch@2.0.4: {} diff --git a/pnpm-workspace.yaml b/pnpm-workspace.yaml new file mode 100644 index 0000000..2eab543 --- /dev/null +++ b/pnpm-workspace.yaml @@ -0,0 +1,6 @@ +packages: + - packages/* + - apps/* + +allowBuilds: + esbuild: true diff --git a/tests/aligned-components.test.ts b/tests/aligned-components.test.ts new file mode 100644 index 0000000..c48ab07 --- /dev/null +++ b/tests/aligned-components.test.ts @@ -0,0 +1,170 @@ +import { describe, it, expect } from "vitest"; +import { mount } from "@vue/test-utils"; +import { h, nextTick, ref } from "vue"; +import { readFileSync } from "node:fs"; +import { + Input, + Label, + Switch, + SwitchContent, + SwitchControl, + SwitchThumb, + Description, + FieldError, +} from "../packages/vue/src"; +import SwitchForm from "../apps/docs/demos/switch-form.vue"; +import InputTypes from "../apps/docs/demos/input-types.vue"; +import CardForm from "../apps/docs/demos/card-with-form.vue"; +const inventory = { + card: [ + "default", + "variants", + "horizontal", + "with-avatar", + "with-images", + "with-form", + "custom-styles", + ], + input: [ + "basic", + "variants", + "on-surface", + "full-width", + "types", + "controlled", + "custom-styles", + ], + switch: [ + "basic", + "sizes", + "with-icons", + "disabled", + "without-label", + "with-description", + "default-selected", + "controlled", + "label-position", + "group", + "group-horizontal", + "form", + "render-props", + "render-function", + "custom-styles", + ], +}; +describe("aligned examples", () => { + for (const [component, names] of Object.entries(inventory)) { + it(`${component} preserves the pinned preview inventory and order`, () => { + const text = readFileSync(`apps/docs/components/${component}.md`, "utf8"); + expect( + [...text.matchAll(/ m[1], + ), + ).toEqual(names.map((n) => `${component}-${n}`)); + }); + } + it("associates each input with its visible label and generates unique IDs per instance", () => { + const w = mount({ render: () => [h(InputTypes), h(InputTypes)] }); + const ids = w.findAll("input").map((e) => e.attributes("id")); + expect(new Set(ids).size).toBe(6); + for (const label of w.findAll("label")) + expect(ids).toContain(label.attributes("for")); + w.unmount(); + }); + it("restores controlled Input DOM when the parent declines an update", async () => { + const w = mount(Input, { props: { modelValue: "固定" } }); + await w.get("input").setValue("编辑"); + await nextTick(); + expect(w.element.value).toBe("固定"); + w.unmount(); + }); + it("submits actual selected values and restores Switch defaults on form reset", async () => { + const w = mount(SwitchForm, { attachTo: document.body }); + const form = w.get("form").element as HTMLFormElement; + const switches = w.findAll("[role=switch]"); + expect(new FormData(form).get("newsletter")).toBe("on"); + await switches[0].trigger("click"); + await switches[1].trigger("click"); + expect(new FormData(form).get("notifications")).toBe("on"); + expect(new FormData(form).has("newsletter")).toBe(false); + await w.get("form").trigger("submit"); + expect(w.get("output").text()).toContain("notifications: on"); + form.reset(); + await nextTick(); + await nextTick(); + expect(switches[0].attributes("aria-checked")).toBe("false"); + expect(switches[1].attributes("aria-checked")).toBe("true"); + w.unmount(); + }); + it("passes root ARIA attributes into composed SwitchContent and preserves container styles", async () => { + const name = ref("静音"); + const w = mount({ + render: () => + h( + Switch, + { "aria-label": name.value, class: "custom", style: "gap:20px" }, + () => h(SwitchContent, () => h(SwitchControl, () => h(SwitchThumb))), + ), + }); + expect(w.get("[role=switch]").attributes("aria-label")).toBe("静音"); + expect(w.get("[data-slot=switch]").classes()).toContain("custom"); + name.value = "音量"; + await nextTick(); + expect(w.get("[role=switch]").attributes("aria-label")).toBe("音量"); + w.unmount(); + }); + it("blocks readonly keyboard activation and supports native and ARIA validation", async () => { + const w = mount(Switch, { + attachTo: document.body, + props: { + isReadOnly: true, + isRequired: true, + validate: (v) => (v ? true : "请启用"), + }, + slots: { + default: () => [ + h(SwitchContent, () => [ + h(SwitchControl, () => h(SwitchThumb)), + h(Label, () => "通知"), + ]), + h(Description, () => "描述一"), + h(Description, () => "描述二"), + h(FieldError), + ], + }, + }); + const control = w.get("[role=switch]"); + await control.trigger("keydown", { key: "Enter" }); + expect(w.emitted("change")).toBeUndefined(); + const ids = w + .findAll("[data-slot=description]") + .map((e) => e.attributes("id")); + expect(new Set(ids).size).toBe(2); + for (const id of ids) + expect(control.attributes("aria-describedby")).toContain(id); + await w.setProps({ isReadOnly: false }); + expect((w.get("input").element as HTMLInputElement).checkValidity()).toBe( + false, + ); + await nextTick(); + expect(w.get("[role=alert]").text()).toBe("请启用"); + expect(document.activeElement).toBe(control.element); + await control.trigger("click"); + expect(w.find("[role=alert]").exists()).toBe(false); + await w.setProps({ checked: false, validationBehavior: "aria" }); + expect(control.attributes("aria-invalid")).toBe("true"); + expect((w.get("input").element as HTMLInputElement).checkValidity()).toBe( + true, + ); + w.unmount(); + }); + it("renders a working Card form using labelled native fields", async () => { + const w = mount(CardForm); + expect(w.findAll("label")).toHaveLength(2); + await w.get("input[type=email]").setValue("test@example.com"); + await w.get("input[type=password]").setValue("test-pass"); + await w.get("form").trigger("submit"); + expect(w.get("[role=status]").text()).toContain("表单提交成功"); + w.unmount(); + }); +}); diff --git a/tests/button-demos.test.ts b/tests/button-demos.test.ts new file mode 100644 index 0000000..eef02d0 --- /dev/null +++ b/tests/button-demos.test.ts @@ -0,0 +1,115 @@ +import { afterEach, describe, it, expect, vi } from "vitest"; +import { mount } from "@vue/test-utils"; +import { h } from "vue"; +import { readFileSync } from "node:fs"; +import { Button } from "../packages/vue/src"; +import LoadingState from "../apps/docs/demos/button-loading-state.vue"; +import Ripple from "../apps/docs/demos/button-ripple-effect.vue"; +const expected = [ + "basic", + "variants", + "sizes", + "with-icons", + "icon-only", + "loading", + "loading-state", + "full-width", + "disabled", + "social", + "render-function", + "custom-variants", + "ripple-effect", + "custom-styles", +]; +afterEach(() => vi.useRealTimers()); +describe("Button examples", () => { + it("includes every preview in the pinned upstream Button document", () => { + const document = readFileSync("apps/docs/components/button.md", "utf8"); + const names = [ + ...document.matchAll(/ match[1]); + expect(names).toEqual(expected); + for (const name of names) + expect( + readFileSync(`apps/docs/demos/button-${name}.vue`, "utf8"), + ).toContain("