nacos-style-ui 0.0.0-stage → 0.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (137) hide show
  1. package/LICENSE +202 -0
  2. package/NOTICE +7 -0
  3. package/README.md +221 -2
  4. package/dist/nacos-style-ui.cjs +1 -0
  5. package/dist/nacos-style-ui.js +1849 -0
  6. package/dist/style.css +2 -0
  7. package/dist/types/components/layout/ConsoleHeader.vue.d.ts +27 -0
  8. package/dist/types/components/layout/ConsoleLayout.vue.d.ts +42 -0
  9. package/dist/types/components/layout/ConsoleSidebar.vue.d.ts +19 -0
  10. package/dist/types/components/layout/SidebarNavButton.vue.d.ts +13 -0
  11. package/dist/types/components/layout/types.d.ts +16 -0
  12. package/dist/types/components/showcase/BasicSections.vue.d.ts +3 -0
  13. package/dist/types/components/showcase/DataSections.vue.d.ts +3 -0
  14. package/dist/types/components/showcase/DemoSection.vue.d.ts +21 -0
  15. package/dist/types/components/showcase/FormSections.vue.d.ts +3 -0
  16. package/dist/types/components/showcase/MenuSections.vue.d.ts +3 -0
  17. package/dist/types/components/showcase/NavigationSections.vue.d.ts +3 -0
  18. package/dist/types/components/showcase/OverlaySections.vue.d.ts +3 -0
  19. package/dist/types/components/showcase/TokensSection.vue.d.ts +3 -0
  20. package/dist/types/components/ui/avatar/Avatar.vue.d.ts +17 -0
  21. package/dist/types/components/ui/avatar/AvatarFallback.vue.d.ts +17 -0
  22. package/dist/types/components/ui/avatar/AvatarImage.vue.d.ts +9 -0
  23. package/dist/types/components/ui/avatar/index.d.ts +3 -0
  24. package/dist/types/components/ui/badge/Badge.vue.d.ts +19 -0
  25. package/dist/types/components/ui/badge/index.d.ts +2 -0
  26. package/dist/types/components/ui/badge/variants.d.ts +5 -0
  27. package/dist/types/components/ui/button/Button.vue.d.ts +23 -0
  28. package/dist/types/components/ui/button/index.d.ts +2 -0
  29. package/dist/types/components/ui/button/variants.d.ts +6 -0
  30. package/dist/types/components/ui/card/Card.vue.d.ts +17 -0
  31. package/dist/types/components/ui/card/CardAction.vue.d.ts +17 -0
  32. package/dist/types/components/ui/card/CardContent.vue.d.ts +17 -0
  33. package/dist/types/components/ui/card/CardDescription.vue.d.ts +17 -0
  34. package/dist/types/components/ui/card/CardFooter.vue.d.ts +17 -0
  35. package/dist/types/components/ui/card/CardHeader.vue.d.ts +17 -0
  36. package/dist/types/components/ui/card/CardTitle.vue.d.ts +17 -0
  37. package/dist/types/components/ui/card/index.d.ts +7 -0
  38. package/dist/types/components/ui/checkbox/Checkbox.vue.d.ts +15 -0
  39. package/dist/types/components/ui/checkbox/index.d.ts +1 -0
  40. package/dist/types/components/ui/collapsible/CollapsibleContent.vue.d.ts +17 -0
  41. package/dist/types/components/ui/collapsible/index.d.ts +2 -0
  42. package/dist/types/components/ui/combo-input/ComboInput.vue.d.ts +25 -0
  43. package/dist/types/components/ui/combo-input/index.d.ts +2 -0
  44. package/dist/types/components/ui/dialog/DialogContent.vue.d.ts +17 -0
  45. package/dist/types/components/ui/dialog/DialogDescription.vue.d.ts +17 -0
  46. package/dist/types/components/ui/dialog/DialogFooter.vue.d.ts +17 -0
  47. package/dist/types/components/ui/dialog/DialogHeader.vue.d.ts +17 -0
  48. package/dist/types/components/ui/dialog/DialogOverlay.vue.d.ts +7 -0
  49. package/dist/types/components/ui/dialog/DialogTitle.vue.d.ts +17 -0
  50. package/dist/types/components/ui/dialog/index.d.ts +7 -0
  51. package/dist/types/components/ui/dropdown-menu/DropdownMenuCheckboxItem.vue.d.ts +25 -0
  52. package/dist/types/components/ui/dropdown-menu/DropdownMenuContent.vue.d.ts +20 -0
  53. package/dist/types/components/ui/dropdown-menu/DropdownMenuItem.vue.d.ts +18 -0
  54. package/dist/types/components/ui/dropdown-menu/DropdownMenuLabel.vue.d.ts +18 -0
  55. package/dist/types/components/ui/dropdown-menu/DropdownMenuRadioItem.vue.d.ts +18 -0
  56. package/dist/types/components/ui/dropdown-menu/DropdownMenuSeparator.vue.d.ts +7 -0
  57. package/dist/types/components/ui/dropdown-menu/DropdownMenuShortcut.vue.d.ts +17 -0
  58. package/dist/types/components/ui/dropdown-menu/DropdownMenuSubContent.vue.d.ts +17 -0
  59. package/dist/types/components/ui/dropdown-menu/DropdownMenuSubTrigger.vue.d.ts +18 -0
  60. package/dist/types/components/ui/dropdown-menu/index.d.ts +10 -0
  61. package/dist/types/components/ui/index.d.ts +32 -0
  62. package/dist/types/components/ui/input/Input.vue.d.ts +15 -0
  63. package/dist/types/components/ui/input/index.d.ts +1 -0
  64. package/dist/types/components/ui/label/Label.vue.d.ts +17 -0
  65. package/dist/types/components/ui/label/index.d.ts +1 -0
  66. package/dist/types/components/ui/menu/Menu.vue.d.ts +29 -0
  67. package/dist/types/components/ui/menu/MenuItem.vue.d.ts +19 -0
  68. package/dist/types/components/ui/menu/MenuLabel.vue.d.ts +17 -0
  69. package/dist/types/components/ui/menu/MenuSeparator.vue.d.ts +7 -0
  70. package/dist/types/components/ui/menu/context.d.ts +7 -0
  71. package/dist/types/components/ui/menu/index.d.ts +5 -0
  72. package/dist/types/components/ui/menubar/Menubar.vue.d.ts +17 -0
  73. package/dist/types/components/ui/menubar/MenubarContent.vue.d.ts +22 -0
  74. package/dist/types/components/ui/menubar/MenubarItem.vue.d.ts +18 -0
  75. package/dist/types/components/ui/menubar/MenubarLabel.vue.d.ts +17 -0
  76. package/dist/types/components/ui/menubar/MenubarSeparator.vue.d.ts +7 -0
  77. package/dist/types/components/ui/menubar/MenubarShortcut.vue.d.ts +17 -0
  78. package/dist/types/components/ui/menubar/MenubarTrigger.vue.d.ts +17 -0
  79. package/dist/types/components/ui/menubar/index.d.ts +8 -0
  80. package/dist/types/components/ui/popover/PopoverContent.vue.d.ts +22 -0
  81. package/dist/types/components/ui/popover/index.d.ts +2 -0
  82. package/dist/types/components/ui/radio-group/RadioGroup.vue.d.ts +17 -0
  83. package/dist/types/components/ui/radio-group/RadioGroupItem.vue.d.ts +7 -0
  84. package/dist/types/components/ui/radio-group/index.d.ts +2 -0
  85. package/dist/types/components/ui/scroll-area/ScrollArea.vue.d.ts +17 -0
  86. package/dist/types/components/ui/scroll-area/ScrollBar.vue.d.ts +10 -0
  87. package/dist/types/components/ui/scroll-area/index.d.ts +2 -0
  88. package/dist/types/components/ui/select/SelectContent.vue.d.ts +20 -0
  89. package/dist/types/components/ui/select/SelectItem.vue.d.ts +18 -0
  90. package/dist/types/components/ui/select/SelectLabel.vue.d.ts +17 -0
  91. package/dist/types/components/ui/select/SelectScrollDownButton.vue.d.ts +7 -0
  92. package/dist/types/components/ui/select/SelectScrollUpButton.vue.d.ts +7 -0
  93. package/dist/types/components/ui/select/SelectSeparator.vue.d.ts +7 -0
  94. package/dist/types/components/ui/select/SelectTrigger.vue.d.ts +17 -0
  95. package/dist/types/components/ui/select/index.d.ts +8 -0
  96. package/dist/types/components/ui/separator/Separator.vue.d.ts +12 -0
  97. package/dist/types/components/ui/separator/index.d.ts +1 -0
  98. package/dist/types/components/ui/sheet/SheetContent.vue.d.ts +20 -0
  99. package/dist/types/components/ui/sheet/SheetDescription.vue.d.ts +17 -0
  100. package/dist/types/components/ui/sheet/SheetFooter.vue.d.ts +17 -0
  101. package/dist/types/components/ui/sheet/SheetHeader.vue.d.ts +17 -0
  102. package/dist/types/components/ui/sheet/SheetOverlay.vue.d.ts +7 -0
  103. package/dist/types/components/ui/sheet/SheetTitle.vue.d.ts +17 -0
  104. package/dist/types/components/ui/sheet/index.d.ts +7 -0
  105. package/dist/types/components/ui/skeleton/Skeleton.vue.d.ts +17 -0
  106. package/dist/types/components/ui/skeleton/index.d.ts +1 -0
  107. package/dist/types/components/ui/sonner/Toaster.vue.d.ts +9 -0
  108. package/dist/types/components/ui/sonner/index.d.ts +2 -0
  109. package/dist/types/components/ui/switch/Switch.vue.d.ts +15 -0
  110. package/dist/types/components/ui/switch/index.d.ts +1 -0
  111. package/dist/types/components/ui/table/Table.vue.d.ts +25 -0
  112. package/dist/types/components/ui/table/TableBody.vue.d.ts +17 -0
  113. package/dist/types/components/ui/table/TableCaption.vue.d.ts +17 -0
  114. package/dist/types/components/ui/table/TableCell.vue.d.ts +17 -0
  115. package/dist/types/components/ui/table/TableFooter.vue.d.ts +17 -0
  116. package/dist/types/components/ui/table/TableHead.vue.d.ts +17 -0
  117. package/dist/types/components/ui/table/TableHeader.vue.d.ts +17 -0
  118. package/dist/types/components/ui/table/TableRow.vue.d.ts +17 -0
  119. package/dist/types/components/ui/table/context.d.ts +10 -0
  120. package/dist/types/components/ui/table/index.d.ts +9 -0
  121. package/dist/types/components/ui/tabs/TabsContent.vue.d.ts +18 -0
  122. package/dist/types/components/ui/tabs/TabsList.vue.d.ts +17 -0
  123. package/dist/types/components/ui/tabs/TabsTrigger.vue.d.ts +18 -0
  124. package/dist/types/components/ui/tabs/index.d.ts +4 -0
  125. package/dist/types/components/ui/textarea/Textarea.vue.d.ts +15 -0
  126. package/dist/types/components/ui/textarea/index.d.ts +1 -0
  127. package/dist/types/components/ui/toggle/Toggle.vue.d.ts +20 -0
  128. package/dist/types/components/ui/toggle/index.d.ts +2 -0
  129. package/dist/types/components/ui/toggle/variants.d.ts +6 -0
  130. package/dist/types/components/ui/toggle-group/ToggleGroup.vue.d.ts +20 -0
  131. package/dist/types/components/ui/toggle-group/ToggleGroupItem.vue.d.ts +21 -0
  132. package/dist/types/components/ui/toggle-group/context.d.ts +7 -0
  133. package/dist/types/components/ui/toggle-group/index.d.ts +2 -0
  134. package/dist/types/components/ui/tooltip/TooltipContent.vue.d.ts +20 -0
  135. package/dist/types/components/ui/tooltip/index.d.ts +2 -0
  136. package/dist/types/lib/utils.d.ts +2 -0
  137. package/package.json +82 -4
package/LICENSE ADDED
@@ -0,0 +1,202 @@
1
+
2
+ Apache License
3
+ Version 2.0, January 2004
4
+ http://www.apache.org/licenses/
5
+
6
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
7
+
8
+ 1. Definitions.
9
+
10
+ "License" shall mean the terms and conditions for use, reproduction,
11
+ and distribution as defined by Sections 1 through 9 of this document.
12
+
13
+ "Licensor" shall mean the copyright owner or entity authorized by
14
+ the copyright owner that is granting the License.
15
+
16
+ "Legal Entity" shall mean the union of the acting entity and all
17
+ other entities that control, are controlled by, or are under common
18
+ control with that entity. For the purposes of this definition,
19
+ "control" means (i) the power, direct or indirect, to cause the
20
+ direction or management of such entity, whether by contract or
21
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
22
+ outstanding shares, or (iii) beneficial ownership of such entity.
23
+
24
+ "You" (or "Your") shall mean an individual or Legal Entity
25
+ exercising permissions granted by this License.
26
+
27
+ "Source" form shall mean the preferred form for making modifications,
28
+ including but not limited to software source code, documentation
29
+ source, and configuration files.
30
+
31
+ "Object" form shall mean any form resulting from mechanical
32
+ transformation or translation of a Source form, including but
33
+ not limited to compiled object code, generated documentation,
34
+ and conversions to other media types.
35
+
36
+ "Work" shall mean the work of authorship, whether in Source or
37
+ Object form, made available under the License, as indicated by a
38
+ copyright notice that is included in or attached to the work
39
+ (an example is provided in the Appendix below).
40
+
41
+ "Derivative Works" shall mean any work, whether in Source or Object
42
+ form, that is based on (or derived from) the Work and for which the
43
+ editorial revisions, annotations, elaborations, or other modifications
44
+ represent, as a whole, an original work of authorship. For the purposes
45
+ of this License, Derivative Works shall not include works that remain
46
+ separable from, or merely link (or bind by name) to the interfaces of,
47
+ the Work and Derivative Works thereof.
48
+
49
+ "Contribution" shall mean any work of authorship, including
50
+ the original version of the Work and any modifications or additions
51
+ to that Work or Derivative Works thereof, that is intentionally
52
+ submitted to Licensor for inclusion in the Work by the copyright owner
53
+ or by an individual or Legal Entity authorized to submit on behalf of
54
+ the copyright owner. For the purposes of this definition, "submitted"
55
+ means any form of electronic, verbal, or written communication sent
56
+ to the Licensor or its representatives, including but not limited to
57
+ communication on electronic mailing lists, source code control systems,
58
+ and issue tracking systems that are managed by, or on behalf of, the
59
+ Licensor for the purpose of discussing and improving the Work, but
60
+ excluding communication that is conspicuously marked or otherwise
61
+ designated in writing by the copyright owner as "Not a Contribution."
62
+
63
+ "Contributor" shall mean Licensor and any individual or Legal Entity
64
+ on behalf of whom a Contribution has been received by Licensor and
65
+ subsequently incorporated within the Work.
66
+
67
+ 2. Grant of Copyright License. Subject to the terms and conditions of
68
+ this License, each Contributor hereby grants to You a perpetual,
69
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
70
+ copyright license to reproduce, prepare Derivative Works of,
71
+ publicly display, publicly perform, sublicense, and distribute the
72
+ Work and such Derivative Works in Source or Object form.
73
+
74
+ 3. Grant of Patent License. Subject to the terms and conditions of
75
+ this License, each Contributor hereby grants to You a perpetual,
76
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
77
+ (except as stated in this section) patent license to make, have made,
78
+ use, offer to sell, sell, import, and otherwise transfer the Work,
79
+ where such license applies only to those patent claims licensable
80
+ by such Contributor that are necessarily infringed by their
81
+ Contribution(s) alone or by combination of their Contribution(s)
82
+ with the Work to which such Contribution(s) was submitted. If You
83
+ institute patent litigation against any entity (including a
84
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
85
+ or a Contribution incorporated within the Work constitutes direct
86
+ or contributory patent infringement, then any patent licenses
87
+ granted to You under this License for that Work shall terminate
88
+ as of the date such litigation is filed.
89
+
90
+ 4. Redistribution. You may reproduce and distribute copies of the
91
+ Work or Derivative Works thereof in any medium, with or without
92
+ modifications, and in Source or Object form, provided that You
93
+ meet the following conditions:
94
+
95
+ (a) You must give any other recipients of the Work or
96
+ Derivative Works a copy of this License; and
97
+
98
+ (b) You must cause any modified files to carry prominent notices
99
+ stating that You changed the files; and
100
+
101
+ (c) You must retain, in the Source form of any Derivative Works
102
+ that You distribute, all copyright, patent, trademark, and
103
+ attribution notices from the Source form of the Work,
104
+ excluding those notices that do not pertain to any part of
105
+ the Derivative Works; and
106
+
107
+ (d) If the Work includes a "NOTICE" text file as part of its
108
+ distribution, then any Derivative Works that You distribute must
109
+ include a readable copy of the attribution notices contained
110
+ within such NOTICE file, excluding those notices that do not
111
+ pertain to any part of the Derivative Works, in at least one
112
+ of the following places: within a NOTICE text file distributed
113
+ as part of the Derivative Works; within the Source form or
114
+ documentation, if provided along with the Derivative Works; or,
115
+ within a display generated by the Derivative Works, if and
116
+ wherever such third-party notices normally appear. The contents
117
+ of the NOTICE file are for informational purposes only and
118
+ do not modify the License. You may add Your own attribution
119
+ notices within Derivative Works that You distribute, alongside
120
+ or as an addendum to the NOTICE text from the Work, provided
121
+ that such additional attribution notices cannot be construed
122
+ as modifying the License.
123
+
124
+ You may add Your own copyright statement to Your modifications and
125
+ may provide additional or different license terms and conditions
126
+ for use, reproduction, or distribution of Your modifications, or
127
+ for any such Derivative Works as a whole, provided Your use,
128
+ reproduction, and distribution of the Work otherwise complies with
129
+ the conditions stated in this License.
130
+
131
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
132
+ any Contribution intentionally submitted for inclusion in the Work
133
+ by You to the Licensor shall be under the terms and conditions of
134
+ this License, without any additional terms or conditions.
135
+ Notwithstanding the above, nothing herein shall supersede or modify
136
+ the terms of any separate license agreement you may have executed
137
+ with Licensor regarding such Contributions.
138
+
139
+ 6. Trademarks. This License does not grant permission to use the trade
140
+ names, trademarks, service marks, or product names of the Licensor,
141
+ except as required for reasonable and customary use in describing the
142
+ origin of the Work and reproducing the content of the NOTICE file.
143
+
144
+ 7. Disclaimer of Warranty. Unless required by applicable law or
145
+ agreed to in writing, Licensor provides the Work (and each
146
+ Contributor provides its Contributions) on an "AS IS" BASIS,
147
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
148
+ implied, including, without limitation, any warranties or conditions
149
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
150
+ PARTICULAR PURPOSE. You are solely responsible for determining the
151
+ appropriateness of using or redistributing the Work and assume any
152
+ risks associated with Your exercise of permissions under this License.
153
+
154
+ 8. Limitation of Liability. In no event and under no legal theory,
155
+ whether in tort (including negligence), contract, or otherwise,
156
+ unless required by applicable law (such as deliberate and grossly
157
+ negligent acts) or agreed to in writing, shall any Contributor be
158
+ liable to You for damages, including any direct, indirect, special,
159
+ incidental, or consequential damages of any character arising as a
160
+ result of this License or out of the use or inability to use the
161
+ Work (including but not limited to damages for loss of goodwill,
162
+ work stoppage, computer failure or malfunction, or any and all
163
+ other commercial damages or losses), even if such Contributor
164
+ has been advised of the possibility of such damages.
165
+
166
+ 9. Accepting Warranty or Additional Liability. While redistributing
167
+ the Work or Derivative Works thereof, You may choose to offer,
168
+ and charge a fee for, acceptance of support, warranty, indemnity,
169
+ or other liability obligations and/or rights consistent with this
170
+ License. However, in accepting such obligations, You may act only
171
+ on Your own behalf and on Your sole responsibility, not on behalf
172
+ of any other Contributor, and only if You agree to indemnify,
173
+ defend, and hold each Contributor harmless for any liability
174
+ incurred by, or claims asserted against, such Contributor by reason
175
+ of your accepting any such warranty or additional liability.
176
+
177
+ END OF TERMS AND CONDITIONS
178
+
179
+ APPENDIX: How to apply the Apache License to your work.
180
+
181
+ To apply the Apache License to your work, attach the following
182
+ boilerplate notice, with the fields enclosed by brackets "[]"
183
+ replaced with your own identifying information. (Don't include
184
+ the brackets!) The text should be enclosed in the appropriate
185
+ comment syntax for the file format. We also recommend that a
186
+ file or class name and description of purpose be included on the
187
+ same "printed page" as the copyright notice for easier
188
+ identification within third-party archives.
189
+
190
+ Copyright [yyyy] [name of copyright owner]
191
+
192
+ Licensed under the Apache License, Version 2.0 (the "License");
193
+ you may not use this file except in compliance with the License.
194
+ You may obtain a copy of the License at
195
+
196
+ http://www.apache.org/licenses/LICENSE-2.0
197
+
198
+ Unless required by applicable law or agreed to in writing, software
199
+ distributed under the License is distributed on an "AS IS" BASIS,
200
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
201
+ See the License for the specific language governing permissions and
202
+ limitations under the License.
package/NOTICE ADDED
@@ -0,0 +1,7 @@
1
+ Console UI
2
+ Copyright 2026 wiselabv
3
+
4
+ This product includes design tokens and CSS styles adapted from
5
+ Nacos 3.2.4 console-ui-next (https://github.com/alibaba/nacos/tree/3.2.4/console-ui-next),
6
+ Copyright 1999-2026 Alibaba Group Holding Ltd.,
7
+ licensed under the Apache License, Version 2.0.
package/README.md CHANGED
@@ -1,3 +1,222 @@
1
- # Temporary Holding Version
1
+ # Console UI
2
2
 
3
- This version is a temporary placeholder for this package. An operational version to replace this has been submitted for review and is awaiting a staged release.
3
+ 一套**纯静态**的 Vue 3 控制台组件库,视觉上复刻 Nacos 3.2.4 新版控制台(`console-ui-next`)的设计 token 与组件样式。不包含业务页面、接口请求、登录鉴权,也没有使用 Nacos 的 logo、商标或原文案。
4
+
5
+ ![浅色主题](docs/preview-light.png)
6
+
7
+ ![深色主题](docs/preview-dark.png)
8
+
9
+ ![组件示例](docs/preview-components.png)
10
+
11
+ ## 特性
12
+
13
+ - **28 个基础组件** + 控制台布局,全部以标签 + 属性方式使用
14
+ - 控制台布局支持 **经典贴边 / Island 浮岛** 两种模式,可实时切换
15
+ - 首屏加载遮罩 + 菜单切换骨架屏,模拟真实异步加载过程
16
+ - Table 支持拖动表头右侧列线调整列宽,并对外抛出 `column-resize` 事件
17
+ - 设计 token 与 Nacos 3.2.4 `console-ui-next` 对齐:主色 `#0079CE`、12px 圆角、OKLCH 颜色变量
18
+ - 浅色 / 深色主题,颜色全部走 CSS 变量
19
+ - 基于 Reka UI(Radix Vue)构建,保留键盘操作与无障碍语义
20
+ - TypeScript 类型完整,包含全局组件类型声明
21
+ - 纯静态示例,无接口、无业务逻辑;组件自身的开合、切换、输入等交互可用
22
+
23
+ ## 技术栈
24
+
25
+ | 依赖 | 版本 |
26
+ | --- | --- |
27
+ | Vue | 3.5 |
28
+ | TypeScript | 6.0 |
29
+ | Vite | 8.3 |
30
+ | Tailwind CSS | 4.3 |
31
+ | Reka UI | 2.11 |
32
+ | vue-sonner | 2.0 |
33
+ | lucide-vue-next | 0.577 |
34
+
35
+ ## 快速开始
36
+
37
+ ```bash
38
+ npm install
39
+ npm run dev
40
+ ```
41
+
42
+ 打开 http://localhost:5173 。
43
+
44
+ ```bash
45
+ npm run build # 展示站构建,输出到 dist-demo/
46
+ npm run build:lib # npm 库构建,输出到 dist/
47
+ npm run preview # 预览展示站构建产物
48
+ ```
49
+
50
+ ## 作为 npm 包使用
51
+
52
+ ```bash
53
+ npm install nacos-style-ui
54
+ ```
55
+
56
+ ```ts
57
+ import { createApp } from 'vue'
58
+ import 'nacos-style-ui/style.css'
59
+ import { UiPlugin } from 'nacos-style-ui'
60
+ import App from './App.vue'
61
+
62
+ createApp(App).use(UiPlugin).mount('#app')
63
+ ```
64
+
65
+ 也可以按需引入:
66
+
67
+ ```ts
68
+ import { Button, Input, Dialog, DialogContent } from 'nacos-style-ui'
69
+ ```
70
+
71
+ - `style.css` 已包含设计 token、组件样式和 Toast 样式;同时包含 Tailwind preflight 与基础全局样式,建议在应用入口只引入一次。消费端不需要额外配置 Tailwind
72
+ - 深色主题给 `<html>` 加 `dark` class
73
+ - 组件通过 `UiPlugin` 全局注册后,使用 `<UiButton>`、`<UiDialog>` 等标签
74
+
75
+ ## 目录结构
76
+
77
+ ```
78
+ src/
79
+ ├── components/
80
+ │ ├── ui/ # 28 个基础组件,按 shadcn 风格按目录组织
81
+ │ │ ├── button/
82
+ │ │ ├── input/
83
+ │ │ ├── dialog/
84
+ │ │ ├── dropdown-menu/
85
+ │ │ ├── select/
86
+ │ │ ├── table/
87
+ │ │ ├── ...
88
+ │ │ └── index.ts # 统一导出 + UiPlugin 全局注册
89
+ │ ├── layout/ # ConsoleSidebar / ConsoleHeader / ConsoleLayout
90
+ │ └── showcase/ # 组件展示页的分区组件
91
+ ├── lib/utils.ts # cn()(clsx + tailwind-merge)
92
+ ├── styles/globals.css # 设计 token、暗色变量、动画
93
+ ├── components.d.ts # 全局组件类型声明
94
+ ├── App.vue # 组件展示页
95
+ └── main.ts
96
+ ```
97
+
98
+ ## 使用方式
99
+
100
+ 组件在 `main.ts` 中通过 `UiPlugin` 全局注册,直接写标签:
101
+
102
+ ```ts
103
+ import { createApp } from 'vue'
104
+ import App from './App.vue'
105
+ import { UiPlugin } from './components/ui'
106
+
107
+ createApp(App).use(UiPlugin).mount('#app')
108
+ ```
109
+
110
+ ```vue
111
+ <script setup lang="ts">
112
+ import { ref } from 'vue'
113
+
114
+ const open = ref(false)
115
+ const enabled = ref(true)
116
+ </script>
117
+
118
+ <template>
119
+ <UiButton variant="outline" size="sm">按钮</UiButton>
120
+ <UiBadge variant="secondary">Beta</UiBadge>
121
+ <UiSwitch v-model="enabled" />
122
+
123
+ <UiDialog v-model:open="open">
124
+ <UiDialogTrigger as-child>
125
+ <UiButton>打开对话框</UiButton>
126
+ </UiDialogTrigger>
127
+ <UiDialogContent>
128
+ <UiDialogHeader>
129
+ <UiDialogTitle>标题</UiDialogTitle>
130
+ <UiDialogDescription>描述信息。</UiDialogDescription>
131
+ </UiDialogHeader>
132
+ <UiDialogFooter>
133
+ <UiButton variant="outline" @click="open = false">取消</UiButton>
134
+ <UiButton>确定</UiButton>
135
+ </UiDialogFooter>
136
+ </UiDialogContent>
137
+ </UiDialog>
138
+ </template>
139
+ ```
140
+
141
+ 也可以按需引入:
142
+
143
+ ```ts
144
+ import { Button, Input, Dialog, DialogContent } from 'nacos-style-ui'
145
+ ```
146
+
147
+ ### 组件清单
148
+
149
+ | 分类 | 组件 |
150
+ | --- | --- |
151
+ | 基础 | Button、Badge、Avatar、Skeleton、Separator |
152
+ | 表单 | Input、Textarea、ComboInput、Checkbox、RadioGroup、Switch、Select、Label |
153
+ | 数据展示 | Card、Table、Tabs、ScrollArea |
154
+ | 反馈与浮层 | Dialog、Sheet、DropdownMenu、Popover、Tooltip、Toaster |
155
+ | 导航 | Collapsible、Toggle、ToggleGroup、Menu、Menubar |
156
+ | 布局 | ConsoleSidebar、ConsoleHeader、ConsoleLayout |
157
+
158
+ ## 设计 token
159
+
160
+ 所有 token 集中在 `src/styles/globals.css`,与 Nacos 3.2.4 的 `console-ui-next/src/globals.css` 保持一致:
161
+
162
+ ```css
163
+ :root {
164
+ --primary: rgb(0 121 206); /* #0079CE */
165
+ --background: rgb(245 249 251); /* #F5F9FB */
166
+ --radius: 0.75rem; /* 12px */
167
+ }
168
+
169
+ .dark {
170
+ --primary: rgb(0 153 240); /* #0099F0 */
171
+ --background: rgb(2 7 10); /* #02070A */
172
+ }
173
+ ```
174
+
175
+ - 支持 OKLCH 的浏览器会使用 `@supports` 中的 OKLCH 覆盖值
176
+ - 深色模式通过 `<html class="dark">` 切换,颜色自动更新
177
+ - 字体使用系统字体栈,组件圆角基于 `--radius` 派生
178
+
179
+ ## 主题切换
180
+
181
+ `App.vue` 负责切换 `<html>` 上的 `.dark` class,并持久化到 `localStorage` 的 `console-ui-theme`。`index.html` 中有一段轻量脚本,在首屏渲染前恢复主题,避免闪烁。
182
+
183
+ ## 添加新组件
184
+
185
+ 1. 在 `src/components/ui/<name>/` 下创建组件与 `index.ts`
186
+ 2. 在 `src/components/ui/index.ts` 中 `export *` 并加入 `components` 注册表
187
+ 3. 在 `src/components.d.ts` 的 `GlobalComponents` 中补一行类型声明
188
+ 4. 在 `src/components/showcase/` 中添加展示区块(可选)
189
+
190
+ ## 构建与发布
191
+
192
+ ```bash
193
+ npm run build # 展示站 → dist-demo/
194
+ npm run build:lib # npm 包 → dist/(ESM + CJS + style.css + d.ts)
195
+ npm pack --dry-run # 检查 npm 包内容
196
+ ```
197
+
198
+ ### 自动发布到 npm
199
+
200
+ `.github/workflows/publish.yml` 会在 **GitHub Release 发布**时自动构建并发布,也可以在 Actions 页面手动触发 `workflow_dispatch`。
201
+
202
+ 1. 在 npm 确认/认领包名 `nacos-style-ui`
203
+ 2. 在 npm 创建 Automation token(或带 publish 权限的 Granular token)
204
+ 3. 在 GitHub 仓库 **Settings → Secrets and variables → Actions** 添加 `NPM_TOKEN`
205
+ 4. 创建 Release / tag(例如 `v0.1.0`);workflow 会把 tag 版本写入 `package.json`,然后执行 `npm publish --access public`
206
+
207
+ 本地手动发布:
208
+
209
+ ```bash
210
+ npm login
211
+ npm publish --access public
212
+ ```
213
+
214
+ `prepublishOnly` 会自动执行 `npm run build:lib`。
215
+
216
+ ## License
217
+
218
+ [Apache License 2.0](LICENSE)。第三方归属见 [NOTICE](NOTICE)。
219
+
220
+ - 设计参考:[Nacos 3.2.4 `console-ui-next`](https://github.com/alibaba/nacos/tree/3.2.4/console-ui-next)(Apache-2.0)
221
+ - 本项目只复刻其视觉风格、设计 token 与组件类名结构,不复刻业务逻辑,不使用 Nacos 商标、logo 和原文案
222
+ - 组件底层使用 [Reka UI](https://reka-ui.com/)(MIT)、[vue-sonner](https://github.com/xiaoluoboding/vue-sonner)(MIT)、[lucide](https://lucide.dev/)(ISC)
@@ -0,0 +1 @@
1
+ Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});let e=require("vue"),t=require("reka-ui"),n=require("clsx"),r=require("tailwind-merge"),i=require("class-variance-authority"),a=require("lucide-vue-next"),o=require("vue-sonner");function s(...e){return(0,r.twMerge)((0,n.clsx)(e))}var c=(0,e.defineComponent)({__name:`Avatar`,props:{class:{type:[Boolean,null,String,Object,Array]}},setup(n){let r=n;return(n,i)=>((0,e.openBlock)(),(0,e.createBlock)((0,e.unref)(t.AvatarRoot),{class:(0,e.normalizeClass)((0,e.unref)(s)(`relative flex h-10 w-10 shrink-0 overflow-hidden rounded-full`,r.class))},{default:(0,e.withCtx)(()=>[(0,e.renderSlot)(n.$slots,`default`)]),_:3},8,[`class`]))}}),l=(0,e.defineComponent)({__name:`AvatarImage`,props:{class:{type:[Boolean,null,String,Object,Array]},src:{},alt:{}},setup(n){let r=n;return(n,i)=>((0,e.openBlock)(),(0,e.createBlock)((0,e.unref)(t.AvatarImage),{src:r.src,alt:r.alt,class:(0,e.normalizeClass)((0,e.unref)(s)(`aspect-square h-full w-full`,r.class))},null,8,[`src`,`alt`,`class`]))}}),u=(0,e.defineComponent)({__name:`AvatarFallback`,props:{class:{type:[Boolean,null,String,Object,Array]}},setup(n){let r=n;return(n,i)=>((0,e.openBlock)(),(0,e.createBlock)((0,e.unref)(t.AvatarFallback),{class:(0,e.normalizeClass)((0,e.unref)(s)(`flex h-full w-full items-center justify-center rounded-full bg-muted`,r.class))},{default:(0,e.withCtx)(()=>[(0,e.renderSlot)(n.$slots,`default`)]),_:3},8,[`class`]))}}),d=(0,i.cva)(`inline-flex items-center rounded-md border px-2.5 py-0.5 text-xs font-semibold transition-colors duration-200 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2`,{variants:{variant:{default:`border-transparent bg-primary text-primary-foreground shadow hover:bg-primary/80`,secondary:`border-transparent bg-secondary text-secondary-foreground hover:bg-secondary/80`,destructive:`border-transparent bg-destructive text-destructive-foreground shadow hover:bg-destructive/80`,outline:`text-foreground`}},defaultVariants:{variant:`default`}}),f=(0,e.defineComponent)({__name:`Badge`,props:{variant:{},class:{type:[Boolean,null,String,Object,Array]}},setup(t){let n=t;return(t,r)=>((0,e.openBlock)(),(0,e.createElementBlock)(`div`,{class:(0,e.normalizeClass)((0,e.unref)(s)((0,e.unref)(d)({variant:n.variant}),n.class))},[(0,e.renderSlot)(t.$slots,`default`)],2))}}),p=(0,i.cva)(`inline-flex cursor-pointer items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-all duration-200 ease-out active:translate-y-0 active:scale-95 active:duration-75 focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0 [&_svg]:transition-transform [&_svg]:duration-200 hover:[&_svg]:scale-110`,{variants:{variant:{default:`bg-primary text-primary-foreground shadow hover:-translate-y-px hover:scale-[1.02] hover:bg-primary/90 hover:shadow-lg hover:shadow-primary/25 active:shadow-sm`,destructive:`bg-destructive text-destructive-foreground shadow-sm hover:-translate-y-px hover:scale-[1.02] hover:bg-destructive/90 hover:shadow-lg hover:shadow-destructive/25 active:shadow-sm`,outline:`border border-input bg-background shadow-sm hover:-translate-y-px hover:scale-[1.02] hover:bg-accent hover:text-accent-foreground hover:shadow-md`,secondary:`bg-secondary text-secondary-foreground shadow-sm hover:-translate-y-px hover:scale-[1.02] hover:bg-secondary/80 hover:shadow-md`,ghost:`hover:-translate-y-px hover:scale-[1.02] hover:bg-accent hover:text-accent-foreground active:bg-accent/80`,link:`text-primary underline-offset-4 hover:underline active:opacity-70`},size:{default:`h-9 px-4 py-2`,sm:`h-8 rounded-md px-3 text-xs`,lg:`h-10 rounded-md px-8`,icon:`h-9 w-9`}},defaultVariants:{variant:`default`,size:`default`}}),m=(0,e.defineComponent)({__name:`Button`,props:{variant:{},size:{},class:{type:[Boolean,null,String,Object,Array]},asChild:{type:Boolean},as:{default:`button`}},setup(n){let r=n;return(n,i)=>((0,e.openBlock)(),(0,e.createBlock)((0,e.unref)(t.Primitive),{as:r.as,"as-child":r.asChild,class:(0,e.normalizeClass)((0,e.unref)(s)((0,e.unref)(p)({variant:r.variant,size:r.size}),r.class))},{default:(0,e.withCtx)(()=>[(0,e.renderSlot)(n.$slots,`default`)]),_:3},8,[`as`,`as-child`,`class`]))}}),h=(0,e.defineComponent)({__name:`Card`,props:{class:{type:[Boolean,null,String,Object,Array]}},setup(t){let n=t;return(t,r)=>((0,e.openBlock)(),(0,e.createElementBlock)(`div`,{"data-slot":`card`,class:(0,e.normalizeClass)((0,e.unref)(s)(`bg-card text-card-foreground flex flex-col gap-6 rounded-xl border border-border/60 py-6 shadow-[0_1px_2px_0_rgba(0,0,0,0.03)] transition-shadow duration-300`,n.class))},[(0,e.renderSlot)(t.$slots,`default`)],2))}}),g=(0,e.defineComponent)({__name:`CardHeader`,props:{class:{type:[Boolean,null,String,Object,Array]}},setup(t){let n=t;return(t,r)=>((0,e.openBlock)(),(0,e.createElementBlock)(`div`,{"data-slot":`card-header`,class:(0,e.normalizeClass)((0,e.unref)(s)(`@container/card-header grid auto-rows-min grid-rows-[auto_auto] items-start gap-1.5 px-6 has-data-[slot=card-action]:grid-cols-[1fr_auto] [.border-b]:pb-6`,n.class))},[(0,e.renderSlot)(t.$slots,`default`)],2))}}),_=(0,e.defineComponent)({__name:`CardTitle`,props:{class:{type:[Boolean,null,String,Object,Array]}},setup(t){let n=t;return(t,r)=>((0,e.openBlock)(),(0,e.createElementBlock)(`div`,{"data-slot":`card-title`,class:(0,e.normalizeClass)((0,e.unref)(s)(`leading-none font-semibold`,n.class))},[(0,e.renderSlot)(t.$slots,`default`)],2))}}),ee=(0,e.defineComponent)({__name:`CardDescription`,props:{class:{type:[Boolean,null,String,Object,Array]}},setup(t){let n=t;return(t,r)=>((0,e.openBlock)(),(0,e.createElementBlock)(`div`,{"data-slot":`card-description`,class:(0,e.normalizeClass)((0,e.unref)(s)(`text-muted-foreground text-sm`,n.class))},[(0,e.renderSlot)(t.$slots,`default`)],2))}}),te=(0,e.defineComponent)({__name:`CardAction`,props:{class:{type:[Boolean,null,String,Object,Array]}},setup(t){let n=t;return(t,r)=>((0,e.openBlock)(),(0,e.createElementBlock)(`div`,{"data-slot":`card-action`,class:(0,e.normalizeClass)((0,e.unref)(s)(`col-start-2 row-span-2 row-start-1 self-start justify-self-end`,n.class))},[(0,e.renderSlot)(t.$slots,`default`)],2))}}),ne=(0,e.defineComponent)({__name:`CardContent`,props:{class:{type:[Boolean,null,String,Object,Array]}},setup(t){let n=t;return(t,r)=>((0,e.openBlock)(),(0,e.createElementBlock)(`div`,{"data-slot":`card-content`,class:(0,e.normalizeClass)((0,e.unref)(s)(`px-6`,n.class))},[(0,e.renderSlot)(t.$slots,`default`)],2))}}),re=(0,e.defineComponent)({__name:`CardFooter`,props:{class:{type:[Boolean,null,String,Object,Array]}},setup(t){let n=t;return(t,r)=>((0,e.openBlock)(),(0,e.createElementBlock)(`div`,{"data-slot":`card-footer`,class:(0,e.normalizeClass)((0,e.unref)(s)(`flex items-center px-6 [.border-t]:pt-6`,n.class))},[(0,e.renderSlot)(t.$slots,`default`)],2))}}),ie=(0,e.defineComponent)({__name:`Checkbox`,props:(0,e.mergeModels)({class:{type:[Boolean,null,String,Object,Array]}},{modelValue:{type:[Boolean,String]},modelModifiers:{}}),emits:[`update:modelValue`],setup(n){let r=(0,e.useModel)(n,`modelValue`),i=n;return(n,a)=>((0,e.openBlock)(),(0,e.createBlock)((0,e.unref)(t.CheckboxRoot),{modelValue:r.value,"onUpdate:modelValue":a[0]||=e=>r.value=e,class:(0,e.normalizeClass)((0,e.unref)(s)(`peer flex h-4 w-4 shrink-0 cursor-pointer items-center justify-center rounded-[4px] border border-primary shadow-sm transition-all duration-200 ease-out hover:border-primary/70 focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring active:scale-90 disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:border-primary data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground data-[state=checked]:shadow-sm`,i.class))},{default:(0,e.withCtx)(()=>[(0,e.createVNode)((0,e.unref)(t.CheckboxIndicator),{class:`flex items-center justify-center text-current`},{default:(0,e.withCtx)(()=>[...a[1]||=[(0,e.createElementVNode)(`svg`,{viewBox:`0 0 16 16`,fill:`none`,class:`h-3 w-3`,"aria-hidden":`true`},[(0,e.createElementVNode)(`path`,{class:`check-path`,d:`M3.5 8.5 6.5 11.25 12.5 4.75`,stroke:`currentColor`,"stroke-width":`2.1`,"stroke-linecap":`round`,"stroke-linejoin":`round`})],-1)]]),_:1})]),_:1},8,[`modelValue`,`class`]))}}),ae=(e,t)=>{let n=e.__vccOpts||e;for(let[e,r]of t)n[e]=r;return n},oe=ae(ie,[[`__scopeId`,`data-v-662008e4`]]),v=(0,e.defineComponent)({__name:`CollapsibleContent`,props:{class:{type:[Boolean,null,String,Object,Array]}},setup(n){let r=n;return(n,i)=>((0,e.openBlock)(),(0,e.createBlock)((0,e.unref)(t.CollapsibleContent),{class:(0,e.normalizeClass)((0,e.unref)(s)(`overflow-hidden will-change-[height,opacity] data-[state=open]:animate-collapsible-down data-[state=closed]:animate-collapsible-up`,r.class))},{default:(0,e.withCtx)(()=>[(0,e.renderSlot)(n.$slots,`default`)]),_:3},8,[`class`]))}}),y=(0,e.defineComponent)({__name:`Input`,props:(0,e.mergeModels)({class:{type:[Boolean,null,String,Object,Array]}},{modelValue:{},modelModifiers:{}}),emits:[`update:modelValue`],setup(t){let n=(0,e.useModel)(t,`modelValue`),r=t;return(t,i)=>(0,e.withDirectives)(((0,e.openBlock)(),(0,e.createElementBlock)(`input`,{"onUpdate:modelValue":i[0]||=e=>n.value=e,class:(0,e.normalizeClass)((0,e.unref)(s)(`flex h-9 w-full rounded-md border border-input bg-transparent px-3 py-1 text-base shadow-sm transition-[color,box-shadow,border-color] duration-200 ease-out file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground hover:border-ring/40 focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50 disabled:hover:border-input aria-invalid:border-destructive aria-invalid:focus-visible:ring-destructive/30 md:text-sm`,r.class))},null,2)),[[e.vModelText,n.value]])}}),se={key:0,class:`absolute z-50 mt-1 w-full origin-top rounded-md border bg-popover p-1 text-popover-foreground shadow-md`},ce={class:`max-h-[200px] overflow-y-auto`},le={key:0,class:`px-3 py-2 text-sm text-muted-foreground`},ue={key:1,class:`px-3 py-2 text-sm text-muted-foreground`},de=[`onMousedown`],b=ae((0,e.defineComponent)({__name:`ComboInput`,props:(0,e.mergeModels)({options:{},placeholder:{},loading:{type:Boolean},loadingText:{default:`加载中...`},class:{type:[Boolean,null,String,Object,Array]}},{modelValue:{default:``},modelModifiers:{}}),emits:[`update:modelValue`],setup(t){let n=(0,e.useModel)(t,`modelValue`),r=t,i=(0,e.ref)(!1),o=(0,e.ref)(n.value),c=(0,e.ref)(null);(0,e.watch)([i,n],()=>{i.value||(o.value=n.value)});let l=(0,e.computed)(()=>{let e=o.value.toLowerCase();return e?r.options.filter(t=>t.label.toLowerCase().includes(e)||t.value.toLowerCase().includes(e)):r.options}),u=()=>{c.value?.querySelector(`input`)?.focus()},d=e=>{let t=String(e??``);o.value=t,n.value=t,i.value||=!0},f=e=>{n.value=e,o.value=e,i.value=!1},p=()=>{i.value=!i.value,u()},m=()=>{i.value=!1,c.value?.querySelector(`input`)?.blur()},h=e=>{c.value&&!c.value.contains(e.target)&&(i.value=!1)};return(0,e.onMounted)(()=>document.addEventListener(`pointerdown`,h)),(0,e.onBeforeUnmount)(()=>document.removeEventListener(`pointerdown`,h)),(t,u)=>((0,e.openBlock)(),(0,e.createElementBlock)(`div`,{ref_key:`containerRef`,ref:c,class:(0,e.normalizeClass)((0,e.unref)(s)(`relative`,r.class))},[(0,e.createVNode)(y,{"model-value":i.value?o.value:n.value,placeholder:r.placeholder,class:`pr-8`,"onUpdate:modelValue":d,onFocus:u[0]||=e=>i.value=!0,onKeydown:(0,e.withKeys)((0,e.withModifiers)(m,[`stop`,`prevent`]),[`esc`])},null,8,[`model-value`,`placeholder`,`onKeydown`]),(0,e.createVNode)((0,e.unref)(a.ChevronDown),{class:(0,e.normalizeClass)((0,e.unref)(s)(`absolute right-2.5 top-1/2 h-4 w-4 -translate-y-1/2 cursor-pointer text-muted-foreground transition-transform duration-200`,i.value&&`rotate-180`)),onClick:p},null,8,[`class`]),(0,e.createVNode)(e.Transition,{name:`combo-pop`},{default:(0,e.withCtx)(()=>[i.value?((0,e.openBlock)(),(0,e.createElementBlock)(`div`,se,[(0,e.createElementVNode)(`div`,ce,[r.loading?((0,e.openBlock)(),(0,e.createElementBlock)(`div`,le,(0,e.toDisplayString)(r.loadingText),1)):l.value.length===0?((0,e.openBlock)(),(0,e.createElementBlock)(`div`,ue,`—`)):((0,e.openBlock)(!0),(0,e.createElementBlock)(e.Fragment,{key:2},(0,e.renderList)(l.value,t=>((0,e.openBlock)(),(0,e.createElementBlock)(`div`,{key:t.value,class:(0,e.normalizeClass)((0,e.unref)(s)(`flex cursor-pointer items-center rounded-sm px-3 py-1.5 text-sm transition-colors duration-150 hover:bg-accent hover:text-accent-foreground`,t.value===n.value&&`bg-accent text-accent-foreground`)),onMousedown:(0,e.withModifiers)(e=>f(t.value),[`prevent`])},(0,e.toDisplayString)(t.label),43,de))),128))])])):(0,e.createCommentVNode)(``,!0)]),_:1})],2))}}),[[`__scopeId`,`data-v-94e17150`]]),x=(0,e.defineComponent)({__name:`DialogOverlay`,props:{class:{type:[Boolean,null,String,Object,Array]}},setup(n){let r=n;return(n,i)=>((0,e.openBlock)(),(0,e.createBlock)((0,e.unref)(t.DialogOverlay),{class:(0,e.normalizeClass)((0,e.unref)(s)(`data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/80 backdrop-blur-[2px] duration-200 ease-out`,r.class))},null,8,[`class`]))}}),S=(0,e.defineComponent)({inheritAttrs:!1,__name:`DialogContent`,props:{class:{type:[Boolean,null,String,Object,Array]}},setup(n){let r=n;return(n,i)=>((0,e.openBlock)(),(0,e.createBlock)((0,e.unref)(t.DialogPortal),null,{default:(0,e.withCtx)(()=>[(0,e.createVNode)(x),(0,e.createVNode)((0,e.unref)(t.DialogContent),(0,e.mergeProps)({class:(0,e.unref)(s)(`bg-background data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 fixed top-[50%] left-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border p-6 shadow-lg duration-200 ease-out sm:rounded-lg`,r.class)},n.$attrs),{default:(0,e.withCtx)(()=>[(0,e.renderSlot)(n.$slots,`default`),(0,e.createVNode)((0,e.unref)(t.DialogClose),{class:`ring-offset-background focus:ring-ring data-[state=open]:bg-accent data-[state=open]:text-muted-foreground absolute top-4 right-4 rounded-md p-0.5 opacity-70 transition-colors duration-150 hover:bg-accent/70 hover:text-foreground hover:opacity-100 focus:ring-2 focus:ring-offset-2 focus:outline-none disabled:pointer-events-none`},{default:(0,e.withCtx)(()=>[(0,e.createVNode)((0,e.unref)(a.X),{class:`h-4 w-4`}),i[0]||=(0,e.createElementVNode)(`span`,{class:`sr-only`},`关闭`,-1)]),_:1})]),_:3},16,[`class`])]),_:3}))}}),C=(0,e.defineComponent)({__name:`DialogHeader`,props:{class:{type:[Boolean,null,String,Object,Array]}},setup(t){let n=t;return(t,r)=>((0,e.openBlock)(),(0,e.createElementBlock)(`div`,{class:(0,e.normalizeClass)((0,e.unref)(s)(`flex flex-col space-y-1.5 text-center sm:text-left`,n.class))},[(0,e.renderSlot)(t.$slots,`default`)],2))}}),w=(0,e.defineComponent)({__name:`DialogFooter`,props:{class:{type:[Boolean,null,String,Object,Array]}},setup(t){let n=t;return(t,r)=>((0,e.openBlock)(),(0,e.createElementBlock)(`div`,{class:(0,e.normalizeClass)((0,e.unref)(s)(`flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2`,n.class))},[(0,e.renderSlot)(t.$slots,`default`)],2))}}),T=(0,e.defineComponent)({__name:`DialogTitle`,props:{class:{type:[Boolean,null,String,Object,Array]}},setup(n){let r=n;return(n,i)=>((0,e.openBlock)(),(0,e.createBlock)((0,e.unref)(t.DialogTitle),{class:(0,e.normalizeClass)((0,e.unref)(s)(`text-lg leading-none font-semibold tracking-tight`,r.class))},{default:(0,e.withCtx)(()=>[(0,e.renderSlot)(n.$slots,`default`)]),_:3},8,[`class`]))}}),E=(0,e.defineComponent)({__name:`DialogDescription`,props:{class:{type:[Boolean,null,String,Object,Array]}},setup(n){let r=n;return(n,i)=>((0,e.openBlock)(),(0,e.createBlock)((0,e.unref)(t.DialogDescription),{class:(0,e.normalizeClass)((0,e.unref)(s)(`text-muted-foreground text-sm`,r.class))},{default:(0,e.withCtx)(()=>[(0,e.renderSlot)(n.$slots,`default`)]),_:3},8,[`class`]))}}),D=(0,e.defineComponent)({inheritAttrs:!1,__name:`DropdownMenuContent`,props:{class:{type:[Boolean,null,String,Object,Array]},sideOffset:{default:4}},setup(n){let r=n;return(n,i)=>((0,e.openBlock)(),(0,e.createBlock)((0,e.unref)(t.DropdownMenuPortal),null,{default:(0,e.withCtx)(()=>[(0,e.createVNode)((0,e.unref)(t.DropdownMenuContent),(0,e.mergeProps)({"side-offset":r.sideOffset,class:(0,e.unref)(s)(`bg-popover text-popover-foreground z-50 min-w-[8rem] overflow-hidden rounded-md border p-1 shadow-md duration-200 ease-out data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2`,r.class)},n.$attrs),{default:(0,e.withCtx)(()=>[(0,e.renderSlot)(n.$slots,`default`)]),_:3},16,[`side-offset`,`class`])]),_:3}))}}),O=(0,e.defineComponent)({__name:`DropdownMenuItem`,props:{class:{type:[Boolean,null,String,Object,Array]},inset:{type:Boolean}},setup(n){let r=n;return(n,i)=>((0,e.openBlock)(),(0,e.createBlock)((0,e.unref)(t.DropdownMenuItem),{class:(0,e.normalizeClass)((0,e.unref)(s)(`focus:bg-accent focus:text-accent-foreground relative flex cursor-default gap-2 rounded-xs px-2 py-1.5 text-sm outline-none transition-colors duration-150 select-none data-[highlighted]:bg-accent data-[highlighted]:text-accent-foreground data-disabled:pointer-events-none data-disabled:opacity-50 [&>svg]:size-4 [&>svg]:shrink-0`,r.inset&&`pl-8`,r.class))},{default:(0,e.withCtx)(()=>[(0,e.renderSlot)(n.$slots,`default`)]),_:3},8,[`class`]))}}),fe={class:`pointer-events-none absolute left-2 flex h-3.5 w-3.5 items-center justify-center`},k=(0,e.defineComponent)({__name:`DropdownMenuCheckboxItem`,props:(0,e.mergeModels)({class:{type:[Boolean,null,String,Object,Array]}},{modelValue:{type:[Boolean,String]},modelModifiers:{}}),emits:[`update:modelValue`],setup(n){let r=(0,e.useModel)(n,`modelValue`),i=n;return(n,o)=>((0,e.openBlock)(),(0,e.createBlock)((0,e.unref)(t.DropdownMenuCheckboxItem),{modelValue:r.value,"onUpdate:modelValue":o[0]||=e=>r.value=e,class:(0,e.normalizeClass)((0,e.unref)(s)(`focus:bg-accent focus:text-accent-foreground relative flex cursor-default items-center gap-2 rounded-xs py-1.5 pr-2 pl-8 text-sm outline-none transition-colors duration-150 select-none data-[highlighted]:bg-accent data-[highlighted]:text-accent-foreground data-disabled:pointer-events-none data-disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0`,i.class))},{default:(0,e.withCtx)(()=>[(0,e.createElementVNode)(`span`,fe,[(0,e.createVNode)((0,e.unref)(t.DropdownMenuItemIndicator),null,{default:(0,e.withCtx)(()=>[(0,e.createVNode)((0,e.unref)(a.Check),{class:`h-4 w-4`})]),_:1})]),(0,e.renderSlot)(n.$slots,`default`)]),_:3},8,[`modelValue`,`class`]))}}),pe={class:`pointer-events-none absolute left-2 flex h-3.5 w-3.5 items-center justify-center`},A=(0,e.defineComponent)({__name:`DropdownMenuRadioItem`,props:{class:{type:[Boolean,null,String,Object,Array]},value:{}},setup(n){let r=n;return(n,i)=>((0,e.openBlock)(),(0,e.createBlock)((0,e.unref)(t.DropdownMenuRadioItem),{value:r.value,class:(0,e.normalizeClass)((0,e.unref)(s)(`focus:bg-accent focus:text-accent-foreground relative flex cursor-default items-center gap-2 rounded-xs py-1.5 pr-2 pl-8 text-sm outline-none transition-colors duration-150 select-none data-[highlighted]:bg-accent data-[highlighted]:text-accent-foreground data-disabled:pointer-events-none data-disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0`,r.class))},{default:(0,e.withCtx)(()=>[(0,e.createElementVNode)(`span`,pe,[(0,e.createVNode)((0,e.unref)(t.DropdownMenuItemIndicator),null,{default:(0,e.withCtx)(()=>[(0,e.createVNode)((0,e.unref)(a.Circle),{class:`h-2 w-2 fill-current`})]),_:1})]),(0,e.renderSlot)(n.$slots,`default`)]),_:3},8,[`value`,`class`]))}}),j=(0,e.defineComponent)({__name:`DropdownMenuLabel`,props:{class:{type:[Boolean,null,String,Object,Array]},inset:{type:Boolean}},setup(n){let r=n;return(n,i)=>((0,e.openBlock)(),(0,e.createBlock)((0,e.unref)(t.DropdownMenuLabel),{class:(0,e.normalizeClass)((0,e.unref)(s)(`px-2 py-1.5 text-sm font-semibold`,r.inset&&`pl-8`,r.class))},{default:(0,e.withCtx)(()=>[(0,e.renderSlot)(n.$slots,`default`)]),_:3},8,[`class`]))}}),M=(0,e.defineComponent)({__name:`DropdownMenuSeparator`,props:{class:{type:[Boolean,null,String,Object,Array]}},setup(n){let r=n;return(n,i)=>((0,e.openBlock)(),(0,e.createBlock)((0,e.unref)(t.DropdownMenuSeparator),{class:(0,e.normalizeClass)((0,e.unref)(s)(`-mx-1 my-1 h-px bg-muted`,r.class))},null,8,[`class`]))}}),N=(0,e.defineComponent)({__name:`DropdownMenuShortcut`,props:{class:{type:[Boolean,null,String,Object,Array]}},setup(t){let n=t;return(t,r)=>((0,e.openBlock)(),(0,e.createElementBlock)(`span`,{class:(0,e.normalizeClass)((0,e.unref)(s)(`ml-auto text-xs tracking-widest opacity-60`,n.class))},[(0,e.renderSlot)(t.$slots,`default`)],2))}}),P=(0,e.defineComponent)({__name:`DropdownMenuSubTrigger`,props:{class:{type:[Boolean,null,String,Object,Array]},inset:{type:Boolean}},setup(n){let r=n;return(n,i)=>((0,e.openBlock)(),(0,e.createBlock)((0,e.unref)(t.DropdownMenuSubTrigger),{class:(0,e.normalizeClass)((0,e.unref)(s)(`focus:bg-accent data-[state=open]:bg-accent flex cursor-default gap-2 rounded-xs px-2 py-1.5 text-sm outline-none transition-colors duration-150 select-none data-[highlighted]:bg-accent [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0`,r.inset&&`pl-8`,r.class))},{default:(0,e.withCtx)(()=>[(0,e.renderSlot)(n.$slots,`default`),(0,e.createVNode)((0,e.unref)(a.ChevronRight),{class:`ml-auto`})]),_:3},8,[`class`]))}}),F=(0,e.defineComponent)({__name:`DropdownMenuSubContent`,props:{class:{type:[Boolean,null,String,Object,Array]}},setup(n){let r=n;return(n,i)=>((0,e.openBlock)(),(0,e.createBlock)((0,e.unref)(t.DropdownMenuSubContent),{class:(0,e.normalizeClass)((0,e.unref)(s)(`bg-popover text-popover-foreground z-50 min-w-[8rem] overflow-hidden rounded-md border p-1 shadow-lg duration-200 ease-out data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2`,r.class))},{default:(0,e.withCtx)(()=>[(0,e.renderSlot)(n.$slots,`default`)]),_:3},8,[`class`]))}}),I=(0,e.defineComponent)({__name:`Label`,props:{class:{type:[Boolean,null,String,Object,Array]}},setup(n){let r=n;return(n,i)=>((0,e.openBlock)(),(0,e.createBlock)((0,e.unref)(t.Label),{class:(0,e.normalizeClass)((0,e.unref)(s)(`text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70`,r.class))},{default:(0,e.withCtx)(()=>[(0,e.renderSlot)(n.$slots,`default`)]),_:3},8,[`class`]))}}),L=Symbol(`Menu`),me=[`role`],R=(0,e.defineComponent)({__name:`Menu`,props:(0,e.mergeModels)({class:{type:[Boolean,null,String,Object,Array]},orientation:{default:`vertical`}},{modelValue:{},modelModifiers:{}}),emits:[`update:modelValue`],setup(t){let n=(0,e.useModel)(t,`modelValue`),r=t;return(0,e.provide)(L,{model:n,orientation:(0,e.toRef)(r,`orientation`)}),(t,n)=>((0,e.openBlock)(),(0,e.createElementBlock)(`div`,{role:r.orientation===`vertical`?`menu`:`menubar`,class:(0,e.normalizeClass)((0,e.unref)(s)(`flex`,r.orientation===`vertical`?`flex-col gap-0.5`:`items-center gap-1`,r.class))},[(0,e.renderSlot)(t.$slots,`default`)],10,me))}}),he=[`disabled`,`aria-current`],z=(0,e.defineComponent)({__name:`MenuItem`,props:{value:{},disabled:{type:Boolean},class:{type:[Boolean,null,String,Object,Array]}},setup(t){let n=t,r=(0,e.inject)(L);if(!r)throw Error(`MenuItem must be used inside Menu`);let i=(0,e.computed)(()=>r.model.value===n.value),a=(0,e.computed)(()=>r.orientation.value===`horizontal`),o=(0,e.computed)(()=>s(`group relative flex cursor-pointer items-center gap-2 rounded-md px-3 py-2 text-sm font-medium transition-all duration-200 ease-out focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 active:scale-[0.98]`,a.value?`justify-center`:`w-full`,i.value?a.value?`text-foreground`:`bg-accent text-accent-foreground`:`text-muted-foreground hover:bg-accent/60 hover:text-foreground`,n.disabled&&`pointer-events-none opacity-50`,n.class));function c(){!n.disabled&&r&&(r.model.value=n.value)}return(t,r)=>((0,e.openBlock)(),(0,e.createElementBlock)(`button`,{type:`button`,role:`menuitem`,disabled:n.disabled,"aria-current":i.value?`page`:void 0,class:(0,e.normalizeClass)(o.value),onClick:c},[(0,e.renderSlot)(t.$slots,`default`),(0,e.createElementVNode)(`span`,{class:(0,e.normalizeClass)([`absolute rounded-full bg-primary transition-all duration-300 ease-out`,[a.value?`bottom-0 left-1/2 h-[2px] -translate-x-1/2`:`left-0 top-1/2 h-4 w-[2px] -translate-y-1/2`,i.value?a.value?`w-4 opacity-100`:`opacity-100`:a.value?`w-0 opacity-0`:`opacity-0`]])},null,2)],10,he))}}),B=(0,e.defineComponent)({__name:`MenuLabel`,props:{class:{type:[Boolean,null,String,Object,Array]}},setup(t){let n=t;return(t,r)=>((0,e.openBlock)(),(0,e.createElementBlock)(`div`,{class:(0,e.normalizeClass)((0,e.unref)(s)(`px-3 py-1.5 text-[11px] font-semibold uppercase tracking-wider text-muted-foreground`,n.class))},[(0,e.renderSlot)(t.$slots,`default`)],2))}}),V=(0,e.defineComponent)({__name:`MenuSeparator`,props:{class:{type:[Boolean,null,String,Object,Array]}},setup(t){let n=t;return(t,r)=>((0,e.openBlock)(),(0,e.createElementBlock)(`div`,{role:`separator`,class:(0,e.normalizeClass)((0,e.unref)(s)(`-mx-1 my-1 h-px bg-border`,n.class))},null,2))}}),H=(0,e.defineComponent)({__name:`Menubar`,props:{class:{type:[Boolean,null,String,Object,Array]}},setup(n){let r=n;return(n,i)=>((0,e.openBlock)(),(0,e.createBlock)((0,e.unref)(t.MenubarRoot),{class:(0,e.normalizeClass)((0,e.unref)(s)(`flex h-9 items-center gap-1 rounded-lg border border-border/70 bg-card p-1 text-foreground`,r.class))},{default:(0,e.withCtx)(()=>[(0,e.renderSlot)(n.$slots,`default`)]),_:3},8,[`class`]))}}),U=(0,e.defineComponent)({__name:`MenubarTrigger`,props:{class:{type:[Boolean,null,String,Object,Array]}},setup(n){let r=n;return(n,i)=>((0,e.openBlock)(),(0,e.createBlock)((0,e.unref)(t.MenubarTrigger),{class:(0,e.normalizeClass)((0,e.unref)(s)(`flex cursor-pointer select-none items-center rounded-md px-3 py-1 text-sm font-medium outline-none transition-colors duration-150 hover:bg-accent hover:text-accent-foreground focus:bg-accent focus:text-accent-foreground data-[state=open]:bg-accent data-[state=open]:text-accent-foreground`,r.class))},{default:(0,e.withCtx)(()=>[(0,e.renderSlot)(n.$slots,`default`)]),_:3},8,[`class`]))}}),W=(0,e.defineComponent)({inheritAttrs:!1,__name:`MenubarContent`,props:{class:{type:[Boolean,null,String,Object,Array]},align:{default:`start`},sideOffset:{default:4}},setup(n){let r=n;return(n,i)=>((0,e.openBlock)(),(0,e.createBlock)((0,e.unref)(t.MenubarPortal),null,{default:(0,e.withCtx)(()=>[(0,e.createVNode)((0,e.unref)(t.MenubarContent),(0,e.mergeProps)({align:r.align,"side-offset":r.sideOffset,class:(0,e.unref)(s)(`bg-popover text-popover-foreground z-50 min-w-[10rem] overflow-hidden rounded-md border p-1 shadow-md duration-200 ease-out data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2`,r.class)},n.$attrs),{default:(0,e.withCtx)(()=>[(0,e.renderSlot)(n.$slots,`default`)]),_:3},16,[`align`,`side-offset`,`class`])]),_:3}))}}),G=(0,e.defineComponent)({__name:`MenubarItem`,props:{class:{type:[Boolean,null,String,Object,Array]},inset:{type:Boolean}},setup(n){let r=n;return(n,i)=>((0,e.openBlock)(),(0,e.createBlock)((0,e.unref)(t.MenubarItem),{class:(0,e.normalizeClass)((0,e.unref)(s)(`focus:bg-accent focus:text-accent-foreground relative flex cursor-default gap-2 rounded-xs px-2 py-1.5 text-sm outline-none transition-colors duration-150 select-none data-[highlighted]:bg-accent data-[highlighted]:text-accent-foreground data-disabled:pointer-events-none data-disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0`,r.inset&&`pl-8`,r.class))},{default:(0,e.withCtx)(()=>[(0,e.renderSlot)(n.$slots,`default`)]),_:3},8,[`class`]))}}),K=(0,e.defineComponent)({__name:`MenubarLabel`,props:{class:{type:[Boolean,null,String,Object,Array]}},setup(n){let r=n;return(n,i)=>((0,e.openBlock)(),(0,e.createBlock)((0,e.unref)(t.MenubarLabel),{class:(0,e.normalizeClass)((0,e.unref)(s)(`px-2 py-1.5 text-sm font-semibold`,r.class))},{default:(0,e.withCtx)(()=>[(0,e.renderSlot)(n.$slots,`default`)]),_:3},8,[`class`]))}}),q=(0,e.defineComponent)({__name:`MenubarSeparator`,props:{class:{type:[Boolean,null,String,Object,Array]}},setup(n){let r=n;return(n,i)=>((0,e.openBlock)(),(0,e.createBlock)((0,e.unref)(t.MenubarSeparator),{class:(0,e.normalizeClass)((0,e.unref)(s)(`-mx-1 my-1 h-px bg-muted`,r.class))},null,8,[`class`]))}}),ge=(0,e.defineComponent)({__name:`MenubarShortcut`,props:{class:{type:[Boolean,null,String,Object,Array]}},setup(t){let n=t;return(t,r)=>((0,e.openBlock)(),(0,e.createElementBlock)(`span`,{class:(0,e.normalizeClass)((0,e.unref)(s)(`ml-auto text-xs tracking-widest opacity-60`,n.class))},[(0,e.renderSlot)(t.$slots,`default`)],2))}}),_e=(0,e.defineComponent)({inheritAttrs:!1,__name:`PopoverContent`,props:{class:{type:[Boolean,null,String,Object,Array]},align:{default:`center`},sideOffset:{default:4}},setup(n){let r=n;return(n,i)=>((0,e.openBlock)(),(0,e.createBlock)((0,e.unref)(t.PopoverPortal),null,{default:(0,e.withCtx)(()=>[(0,e.createVNode)((0,e.unref)(t.PopoverContent),(0,e.mergeProps)({align:r.align,"side-offset":r.sideOffset,class:(0,e.unref)(s)(`z-50 w-72 rounded-md border bg-popover p-4 text-popover-foreground shadow-md outline-none duration-200 ease-out data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2`,r.class)},n.$attrs),{default:(0,e.withCtx)(()=>[(0,e.renderSlot)(n.$slots,`default`)]),_:3},16,[`align`,`side-offset`,`class`])]),_:3}))}}),ve=(0,e.defineComponent)({__name:`RadioGroup`,props:{class:{type:[Boolean,null,String,Object,Array]}},setup(n){let r=n;return(n,i)=>((0,e.openBlock)(),(0,e.createBlock)((0,e.unref)(t.RadioGroupRoot),{"data-slot":`radio-group`,class:(0,e.normalizeClass)((0,e.unref)(s)(`grid gap-3`,r.class))},{default:(0,e.withCtx)(()=>[(0,e.renderSlot)(n.$slots,`default`)]),_:3},8,[`class`]))}}),ye=(0,e.defineComponent)({__name:`RadioGroupItem`,props:{class:{type:[Boolean,null,String,Object,Array]}},setup(n){let r=n;return(n,i)=>((0,e.openBlock)(),(0,e.createBlock)((0,e.unref)(t.RadioGroupItem),{"data-slot":`radio-group-item`,class:(0,e.normalizeClass)((0,e.unref)(s)(`border-input text-primary aspect-square size-4 shrink-0 cursor-pointer rounded-full border shadow-xs transition-[color,box-shadow,border-color,transform] duration-200 ease-out outline-none hover:border-primary/70 focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 active:scale-90 disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:border-primary`,r.class))},{default:(0,e.withCtx)(()=>[(0,e.createVNode)((0,e.unref)(t.RadioGroupIndicator),{"data-slot":`radio-group-indicator`,class:`relative flex items-center justify-center data-[state=checked]:animate-in data-[state=checked]:zoom-in-50 data-[state=checked]:duration-150`},{default:(0,e.withCtx)(()=>[(0,e.createVNode)((0,e.unref)(a.Circle),{class:`fill-primary size-2`})]),_:1})]),_:1},8,[`class`]))}}),J=(0,e.defineComponent)({__name:`ScrollBar`,props:{class:{type:[Boolean,null,String,Object,Array]},orientation:{default:`vertical`}},setup(n){let r=n;return(n,i)=>((0,e.openBlock)(),(0,e.createBlock)((0,e.unref)(t.ScrollAreaScrollbar),{orientation:r.orientation,class:(0,e.normalizeClass)((0,e.unref)(s)(`flex touch-none p-px transition-colors select-none`,r.orientation===`vertical`&&`h-full w-2.5 border-l border-l-transparent`,r.orientation===`horizontal`&&`h-2.5 flex-col border-t border-t-transparent`,r.class))},{default:(0,e.withCtx)(()=>[(0,e.createVNode)((0,e.unref)(t.ScrollAreaThumb),{class:`relative flex-1 rounded-full bg-border`})]),_:1},8,[`orientation`,`class`]))}}),be=(0,e.defineComponent)({__name:`ScrollArea`,props:{class:{type:[Boolean,null,String,Object,Array]}},setup(n){let r=n;return(n,i)=>((0,e.openBlock)(),(0,e.createBlock)((0,e.unref)(t.ScrollAreaRoot),{class:(0,e.normalizeClass)((0,e.unref)(s)(`relative overflow-hidden`,r.class))},{default:(0,e.withCtx)(()=>[(0,e.createVNode)((0,e.unref)(t.ScrollAreaViewport),{class:`h-full w-full rounded-[inherit]`},{default:(0,e.withCtx)(()=>[(0,e.renderSlot)(n.$slots,`default`)]),_:3}),(0,e.createVNode)(J),(0,e.createVNode)((0,e.unref)(t.ScrollAreaCorner))]),_:3},8,[`class`]))}}),xe=(0,e.defineComponent)({__name:`SelectTrigger`,props:{class:{type:[Boolean,null,String,Object,Array]}},setup(n){let r=n;return(n,i)=>((0,e.openBlock)(),(0,e.createBlock)((0,e.unref)(t.SelectTrigger),{class:(0,e.normalizeClass)((0,e.unref)(s)(`group flex h-9 w-full cursor-pointer items-center justify-between whitespace-nowrap rounded-md border border-input bg-transparent px-3 py-2 text-sm shadow-sm ring-offset-background transition-[color,box-shadow,border-color] duration-200 ease-out placeholder:text-muted-foreground hover:border-ring/50 focus:outline-none focus:ring-1 focus:ring-ring data-[state=open]:border-ring data-[state=open]:ring-1 data-[state=open]:ring-ring disabled:cursor-not-allowed disabled:opacity-50 [&>span]:line-clamp-1`,r.class))},{default:(0,e.withCtx)(()=>[(0,e.renderSlot)(n.$slots,`default`),(0,e.createVNode)((0,e.unref)(t.SelectIcon),{"as-child":``},{default:(0,e.withCtx)(()=>[(0,e.createVNode)((0,e.unref)(a.ChevronDown),{class:`h-4 w-4 opacity-50 transition-transform duration-200 group-data-[state=open]:rotate-180`})]),_:1})]),_:3},8,[`class`]))}}),Y=(0,e.defineComponent)({__name:`SelectScrollDownButton`,props:{class:{type:[Boolean,null,String,Object,Array]}},setup(n){let r=n;return(n,i)=>((0,e.openBlock)(),(0,e.createBlock)((0,e.unref)(t.SelectScrollDownButton),{class:(0,e.normalizeClass)((0,e.unref)(s)(`flex cursor-default items-center justify-center py-1`,r.class))},{default:(0,e.withCtx)(()=>[(0,e.createVNode)((0,e.unref)(a.ChevronDown),{class:`h-4 w-4`})]),_:1},8,[`class`]))}}),X=(0,e.defineComponent)({__name:`SelectScrollUpButton`,props:{class:{type:[Boolean,null,String,Object,Array]}},setup(n){let r=n;return(n,i)=>((0,e.openBlock)(),(0,e.createBlock)((0,e.unref)(t.SelectScrollUpButton),{class:(0,e.normalizeClass)((0,e.unref)(s)(`flex cursor-default items-center justify-center py-1`,r.class))},{default:(0,e.withCtx)(()=>[(0,e.createVNode)((0,e.unref)(a.ChevronUp),{class:`h-4 w-4`})]),_:1},8,[`class`]))}}),Se=(0,e.defineComponent)({inheritAttrs:!1,__name:`SelectContent`,props:{class:{type:[Boolean,null,String,Object,Array]},position:{default:`popper`}},setup(n){let r=n;return(n,i)=>((0,e.openBlock)(),(0,e.createBlock)((0,e.unref)(t.SelectPortal),null,{default:(0,e.withCtx)(()=>[(0,e.createVNode)((0,e.unref)(t.SelectContent),(0,e.mergeProps)({position:r.position,class:(0,e.unref)(s)(`relative z-50 max-h-96 min-w-[8rem] overflow-hidden rounded-md border bg-popover text-popover-foreground shadow-md duration-200 ease-out data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2`,r.position===`popper`&&`data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1`,r.class)},n.$attrs),{default:(0,e.withCtx)(()=>[(0,e.createVNode)(X),(0,e.createVNode)((0,e.unref)(t.SelectViewport),{class:(0,e.normalizeClass)((0,e.unref)(s)(`p-1`,r.position===`popper`&&`h-[var(--reka-select-trigger-height)] w-full min-w-[var(--reka-select-trigger-width)]`))},{default:(0,e.withCtx)(()=>[(0,e.renderSlot)(n.$slots,`default`)]),_:3},8,[`class`]),(0,e.createVNode)(Y)]),_:3},16,[`position`,`class`])]),_:3}))}}),Ce=(0,e.defineComponent)({__name:`SelectLabel`,props:{class:{type:[Boolean,null,String,Object,Array]}},setup(n){let r=n;return(n,i)=>((0,e.openBlock)(),(0,e.createBlock)((0,e.unref)(t.SelectLabel),{class:(0,e.normalizeClass)((0,e.unref)(s)(`px-2 py-1.5 text-sm font-semibold`,r.class))},{default:(0,e.withCtx)(()=>[(0,e.renderSlot)(n.$slots,`default`)]),_:3},8,[`class`]))}}),we={class:`absolute right-2 flex h-3.5 w-3.5 items-center justify-center`},Te=(0,e.defineComponent)({__name:`SelectItem`,props:{class:{type:[Boolean,null,String,Object,Array]},value:{}},setup(n){let r=n;return(n,i)=>((0,e.openBlock)(),(0,e.createBlock)((0,e.unref)(t.SelectItem),{value:r.value,class:(0,e.normalizeClass)((0,e.unref)(s)(`relative flex w-full cursor-default select-none items-center rounded-sm py-1.5 pr-8 pl-2 text-sm outline-none transition-colors duration-150 focus:bg-accent focus:text-accent-foreground data-[highlighted]:bg-accent data-[highlighted]:text-accent-foreground data-disabled:pointer-events-none data-disabled:opacity-50`,r.class))},{default:(0,e.withCtx)(()=>[(0,e.createElementVNode)(`span`,we,[(0,e.createVNode)((0,e.unref)(t.SelectItemIndicator),null,{default:(0,e.withCtx)(()=>[(0,e.createVNode)((0,e.unref)(a.Check),{class:`h-4 w-4`})]),_:1})]),(0,e.createVNode)((0,e.unref)(t.SelectItemText),null,{default:(0,e.withCtx)(()=>[(0,e.renderSlot)(n.$slots,`default`)]),_:3})]),_:3},8,[`value`,`class`]))}}),Ee=(0,e.defineComponent)({__name:`SelectSeparator`,props:{class:{type:[Boolean,null,String,Object,Array]}},setup(n){let r=n;return(n,i)=>((0,e.openBlock)(),(0,e.createBlock)((0,e.unref)(t.SelectSeparator),{class:(0,e.normalizeClass)((0,e.unref)(s)(`-mx-1 my-1 h-px bg-muted`,r.class))},null,8,[`class`]))}}),De=(0,e.defineComponent)({__name:`Separator`,props:{class:{type:[Boolean,null,String,Object,Array]},orientation:{default:`horizontal`},decorative:{type:Boolean,default:!0}},setup(n){let r=n;return(n,i)=>((0,e.openBlock)(),(0,e.createBlock)((0,e.unref)(t.Separator),{orientation:r.orientation,decorative:r.decorative,class:(0,e.normalizeClass)((0,e.unref)(s)(`shrink-0 bg-border`,r.orientation===`horizontal`?`h-[1px] w-full`:`h-full w-[1px]`,r.class))},null,8,[`orientation`,`decorative`,`class`]))}}),Z=(0,e.defineComponent)({__name:`SheetOverlay`,props:{class:{type:[Boolean,null,String,Object,Array]}},setup(n){let r=n;return(n,i)=>((0,e.openBlock)(),(0,e.createBlock)((0,e.unref)(t.DialogOverlay),{"data-sheet-overlay":``,class:(0,e.normalizeClass)((0,e.unref)(s)(`fixed inset-0 z-50 bg-black/80 backdrop-blur-[2px] duration-200 ease-out`,r.class)),style:{animationName:`var(--sheet-overlay-anim)`,animationDuration:`0.3s`,animationTimingFunction:`ease-out`,animationFillMode:`forwards`}},null,8,[`class`]))}}),Oe=(0,e.defineComponent)({inheritAttrs:!1,__name:`SheetContent`,props:{class:{type:[Boolean,null,String,Object,Array]},side:{default:`right`}},setup(n){let r=n,i={top:`inset-x-0 top-0 border-b`,bottom:`inset-x-0 bottom-0 border-t`,left:`inset-y-0 left-0 h-full w-3/4 border-r sm:max-w-sm`,right:`inset-y-0 right-0 h-full w-3/4 border-l sm:max-w-md`},o={animationName:`var(--sheet-content-anim)`,animationDuration:`0.35s`,animationTimingFunction:`cubic-bezier(0.32, 0.72, 0, 1)`,animationFillMode:`forwards`};return(n,c)=>((0,e.openBlock)(),(0,e.createBlock)((0,e.unref)(t.DialogPortal),null,{default:(0,e.withCtx)(()=>[(0,e.createVNode)(Z),(0,e.createVNode)((0,e.unref)(t.DialogContent),(0,e.mergeProps)({class:(0,e.unref)(s)(`bg-background fixed z-50 shadow-lg will-change-transform`,i[r.side],r.class),style:o,"data-sheet-content":``,"data-sheet-side":r.side},n.$attrs),{default:(0,e.withCtx)(()=>[(0,e.createVNode)((0,e.unref)(t.DialogClose),{class:`ring-offset-background focus:ring-ring data-[state=open]:bg-secondary absolute top-4 right-4 z-10 rounded-md p-0.5 opacity-70 transition-colors duration-150 hover:bg-accent/70 hover:text-foreground hover:opacity-100 focus:ring-2 focus:ring-offset-2 focus:outline-none disabled:pointer-events-none`},{default:(0,e.withCtx)(()=>[(0,e.createVNode)((0,e.unref)(a.X),{class:`h-4 w-4`}),c[0]||=(0,e.createElementVNode)(`span`,{class:`sr-only`},`关闭`,-1)]),_:1}),(0,e.renderSlot)(n.$slots,`default`)]),_:3},16,[`class`,`data-sheet-side`])]),_:3}))}}),ke=(0,e.defineComponent)({__name:`SheetHeader`,props:{class:{type:[Boolean,null,String,Object,Array]}},setup(t){let n=t;return(t,r)=>((0,e.openBlock)(),(0,e.createElementBlock)(`div`,{class:(0,e.normalizeClass)((0,e.unref)(s)(`flex flex-col space-y-2 p-6 pb-0`,n.class))},[(0,e.renderSlot)(t.$slots,`default`)],2))}}),Ae=(0,e.defineComponent)({__name:`SheetFooter`,props:{class:{type:[Boolean,null,String,Object,Array]}},setup(t){let n=t;return(t,r)=>((0,e.openBlock)(),(0,e.createElementBlock)(`div`,{class:(0,e.normalizeClass)((0,e.unref)(s)(`flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2 p-6 pt-0`,n.class))},[(0,e.renderSlot)(t.$slots,`default`)],2))}}),je=(0,e.defineComponent)({__name:`SheetTitle`,props:{class:{type:[Boolean,null,String,Object,Array]}},setup(n){let r=n;return(n,i)=>((0,e.openBlock)(),(0,e.createBlock)((0,e.unref)(t.DialogTitle),{class:(0,e.normalizeClass)((0,e.unref)(s)(`text-lg font-semibold text-foreground`,r.class))},{default:(0,e.withCtx)(()=>[(0,e.renderSlot)(n.$slots,`default`)]),_:3},8,[`class`]))}}),Me=(0,e.defineComponent)({__name:`SheetDescription`,props:{class:{type:[Boolean,null,String,Object,Array]}},setup(n){let r=n;return(n,i)=>((0,e.openBlock)(),(0,e.createBlock)((0,e.unref)(t.DialogDescription),{class:(0,e.normalizeClass)((0,e.unref)(s)(`text-sm text-muted-foreground`,r.class))},{default:(0,e.withCtx)(()=>[(0,e.renderSlot)(n.$slots,`default`)]),_:3},8,[`class`]))}}),Ne=(0,e.defineComponent)({__name:`Skeleton`,props:{class:{type:[Boolean,null,String,Object,Array]}},setup(t){let n=t;return(t,r)=>((0,e.openBlock)(),(0,e.createElementBlock)(`div`,{"data-slot":`skeleton`,class:(0,e.normalizeClass)((0,e.unref)(s)(`bg-accent animate-pulse rounded-md`,n.class))},[(0,e.renderSlot)(t.$slots,`default`)],2))}}),Pe=(0,e.defineComponent)({__name:`Toaster`,props:{class:{},theme:{default:`system`}},setup(t){let n=t,r={classes:{toast:`group toast group-[.toaster]:bg-background group-[.toaster]:text-foreground group-[.toaster]:border-border group-[.toaster]:shadow-lg`,description:`group-[.toast]:text-muted-foreground`,actionButton:`group-[.toast]:bg-primary group-[.toast]:text-primary-foreground`,cancelButton:`group-[.toast]:bg-muted group-[.toast]:text-muted-foreground`}};return(t,i)=>((0,e.openBlock)(),(0,e.createBlock)((0,e.unref)(o.Toaster),{class:(0,e.normalizeClass)((0,e.unref)(s)(`toaster group`,n.class)),"toast-options":r,theme:n.theme,position:`top-right`,"rich-colors":``,"close-button":``},null,8,[`class`,`theme`]))}}),Fe=(0,e.defineComponent)({__name:`Switch`,props:(0,e.mergeModels)({class:{type:[Boolean,null,String,Object,Array]}},{modelValue:{type:Boolean},modelModifiers:{}}),emits:[`update:modelValue`],setup(n){let r=(0,e.useModel)(n,`modelValue`),i=n;return(n,a)=>((0,e.openBlock)(),(0,e.createBlock)((0,e.unref)(t.SwitchRoot),{modelValue:r.value,"onUpdate:modelValue":a[0]||=e=>r.value=e,class:(0,e.normalizeClass)((0,e.unref)(s)(`peer inline-flex h-5 w-9 shrink-0 cursor-pointer items-center rounded-full border-2 border-transparent shadow-sm transition-[background-color,box-shadow,transform] duration-200 ease-out active:scale-95 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-primary data-[state=checked]:hover:bg-primary/90 data-[state=unchecked]:bg-input data-[state=unchecked]:hover:bg-input/80`,i.class))},{default:(0,e.withCtx)(()=>[(0,e.createVNode)((0,e.unref)(t.SwitchThumb),{class:(0,e.normalizeClass)((0,e.unref)(s)(`pointer-events-none block h-4 w-4 rounded-full bg-background shadow-lg ring-0 transition-transform duration-200 ease-out data-[state=checked]:translate-x-4 data-[state=unchecked]:translate-x-0`))},null,8,[`class`])]),_:1},8,[`modelValue`,`class`]))}}),Ie=Symbol(`TableResize`),Le={class:`relative w-full overflow-auto`},Re=(0,e.defineComponent)({inheritAttrs:!1,__name:`Table`,props:{class:{type:[Boolean,null,String,Object,Array]},resizable:{type:Boolean,default:!1}},emits:[`column-resize`],setup(t,{emit:n}){let r=t,i=n;return(0,e.provide)(Ie,{resizable:r.resizable,onResize:e=>i(`column-resize`,e)}),(t,n)=>((0,e.openBlock)(),(0,e.createElementBlock)(`div`,Le,[(0,e.createElementVNode)(`table`,(0,e.mergeProps)({class:(0,e.unref)(s)(`w-full caption-bottom text-sm`,r.resizable&&`table-fixed`,r.class)},t.$attrs),[(0,e.renderSlot)(t.$slots,`default`)],16)]))}}),Q=(0,e.defineComponent)({__name:`TableHeader`,props:{class:{type:[Boolean,null,String,Object,Array]}},setup(t){let n=t;return(t,r)=>((0,e.openBlock)(),(0,e.createElementBlock)(`thead`,{class:(0,e.normalizeClass)((0,e.unref)(s)(`[&_tr]:border-b`,n.class))},[(0,e.renderSlot)(t.$slots,`default`)],2))}}),ze=(0,e.defineComponent)({__name:`TableBody`,props:{class:{type:[Boolean,null,String,Object,Array]}},setup(t){let n=t;return(t,r)=>((0,e.openBlock)(),(0,e.createElementBlock)(`tbody`,{class:(0,e.normalizeClass)((0,e.unref)(s)(`[&_tr:last-child]:border-0`,n.class))},[(0,e.renderSlot)(t.$slots,`default`)],2))}}),Be=(0,e.defineComponent)({__name:`TableFooter`,props:{class:{type:[Boolean,null,String,Object,Array]}},setup(t){let n=t;return(t,r)=>((0,e.openBlock)(),(0,e.createElementBlock)(`tfoot`,{class:(0,e.normalizeClass)((0,e.unref)(s)(`border-t bg-muted/50 font-medium [&>tr]:last:border-b-0`,n.class))},[(0,e.renderSlot)(t.$slots,`default`)],2))}}),Ve=(0,e.defineComponent)({__name:`TableRow`,props:{class:{type:[Boolean,null,String,Object,Array]}},setup(t){let n=t;return(t,r)=>((0,e.openBlock)(),(0,e.createElementBlock)(`tr`,{class:(0,e.normalizeClass)((0,e.unref)(s)(`border-b transition-colors duration-150 hover:bg-muted/50 data-[state=selected]:bg-muted`,n.class))},[(0,e.renderSlot)(t.$slots,`default`)],2))}}),He=72,Ue=(0,e.defineComponent)({__name:`TableHead`,props:{class:{type:[Boolean,null,String,Object,Array]}},setup(t){let n=t,r=(0,e.inject)(Ie,{resizable:!1}),i=(0,e.computed)(()=>r.resizable),a=(0,e.ref)(null);function o(e){let t=a.value,n=t?.closest(`table`);if(!t||!n)return;e.preventDefault(),e.stopPropagation();let i=Array.from(n.querySelectorAll(`thead th`)),o=i.map(e=>e.getBoundingClientRect().width),s=t.getBoundingClientRect().width,c=o.reduce((e,t)=>e+t,0);i.forEach((e,t)=>{e.style.width=`${o[t]??0}px`}),n.style.width=`${c}px`,n.style.minWidth=`100%`;let l=e.clientX,u=s,d=e=>{u=Math.max(He,s+e.clientX-l),t.style.width=`${u}px`,n.style.width=`${c+(u-s)}px`},f=()=>{window.removeEventListener(`pointermove`,d),window.removeEventListener(`pointerup`,f),document.body.style.cursor=``,document.body.style.userSelect=``;let e=Array.from(t.parentElement?.children??[]).indexOf(t);r.onResize?.({index:e,width:u})};window.addEventListener(`pointermove`,d),window.addEventListener(`pointerup`,f),document.body.style.cursor=`col-resize`,document.body.style.userSelect=`none`}return(t,r)=>((0,e.openBlock)(),(0,e.createElementBlock)(`th`,{ref_key:`thRef`,ref:a,class:(0,e.normalizeClass)((0,e.unref)(s)(`h-10 px-2 text-left align-middle font-medium whitespace-nowrap [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]`,i.value&&`relative select-none pr-4`,n.class))},[(0,e.renderSlot)(t.$slots,`default`),i.value?((0,e.openBlock)(),(0,e.createElementBlock)(`div`,{key:0,class:`group/resize absolute right-0 top-0 z-10 flex h-full w-2 translate-x-1/2 cursor-col-resize touch-none items-center justify-center`,role:`separator`,"aria-orientation":`vertical`,title:`拖动调整列宽`,onPointerdown:o},[...r[0]||=[(0,e.createElementVNode)(`span`,{class:`h-4/5 w-px rounded-full bg-border/80 transition-colors duration-150 group-hover/resize:bg-primary`},null,-1)]],32)):(0,e.createCommentVNode)(``,!0)],2))}}),We=(0,e.defineComponent)({__name:`TableCell`,props:{class:{type:[Boolean,null,String,Object,Array]}},setup(t){let n=t;return(t,r)=>((0,e.openBlock)(),(0,e.createElementBlock)(`td`,{class:(0,e.normalizeClass)((0,e.unref)(s)(`p-2 align-middle whitespace-nowrap [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]`,n.class))},[(0,e.renderSlot)(t.$slots,`default`)],2))}}),Ge=(0,e.defineComponent)({__name:`TableCaption`,props:{class:{type:[Boolean,null,String,Object,Array]}},setup(t){let n=t;return(t,r)=>((0,e.openBlock)(),(0,e.createElementBlock)(`caption`,{class:(0,e.normalizeClass)((0,e.unref)(s)(`mt-4 text-sm text-muted-foreground`,n.class))},[(0,e.renderSlot)(t.$slots,`default`)],2))}}),Ke=(0,e.defineComponent)({__name:`TabsList`,props:{class:{type:[Boolean,null,String,Object,Array]}},setup(n){let r=n;return(n,i)=>((0,e.openBlock)(),(0,e.createBlock)((0,e.unref)(t.TabsList),{class:(0,e.normalizeClass)((0,e.unref)(s)(`relative inline-flex h-9 items-center justify-center rounded-lg bg-muted p-1 text-muted-foreground`,r.class))},{default:(0,e.withCtx)(()=>[(0,e.createVNode)((0,e.unref)(t.TabsIndicator),{class:`absolute left-0 top-1/2 h-[var(--reka-tabs-indicator-thickness)] w-[var(--reka-tabs-indicator-size)] -translate-y-1/2 translate-x-[var(--reka-tabs-indicator-position)] rounded-md bg-background shadow ring-1 ring-border/40 transition-[width,transform] duration-300 ease-out`}),(0,e.renderSlot)(n.$slots,`default`)]),_:3},8,[`class`]))}}),qe=(0,e.defineComponent)({__name:`TabsTrigger`,props:{class:{type:[Boolean,null,String,Object,Array]},value:{}},setup(n){let r=n;return(n,i)=>((0,e.openBlock)(),(0,e.createBlock)((0,e.unref)(t.TabsTrigger),{value:r.value,class:(0,e.normalizeClass)((0,e.unref)(s)(`relative z-10 inline-flex cursor-pointer items-center justify-center whitespace-nowrap rounded-md px-3 py-1 text-sm font-medium ring-offset-background transition-colors duration-200 hover:text-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 data-[state=active]:text-foreground`,r.class))},{default:(0,e.withCtx)(()=>[(0,e.renderSlot)(n.$slots,`default`)]),_:3},8,[`value`,`class`]))}}),Je=(0,e.defineComponent)({__name:`TabsContent`,props:{class:{type:[Boolean,null,String,Object,Array]},value:{}},setup(n){let r=n;return(n,i)=>((0,e.openBlock)(),(0,e.createBlock)((0,e.unref)(t.TabsContent),{value:r.value,class:(0,e.normalizeClass)((0,e.unref)(s)(`mt-2 ring-offset-background data-[state=active]:animate-in data-[state=active]:fade-in-0 data-[state=active]:slide-in-from-bottom-1 data-[state=active]:duration-200 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2`,r.class))},{default:(0,e.withCtx)(()=>[(0,e.renderSlot)(n.$slots,`default`)]),_:3},8,[`value`,`class`]))}}),Ye=(0,e.defineComponent)({__name:`Textarea`,props:(0,e.mergeModels)({class:{type:[Boolean,null,String,Object,Array]}},{modelValue:{},modelModifiers:{}}),emits:[`update:modelValue`],setup(t){let n=(0,e.useModel)(t,`modelValue`),r=t;return(t,i)=>(0,e.withDirectives)(((0,e.openBlock)(),(0,e.createElementBlock)(`textarea`,{"onUpdate:modelValue":i[0]||=e=>n.value=e,"data-slot":`textarea`,class:(0,e.normalizeClass)((0,e.unref)(s)(`border-input placeholder:text-muted-foreground flex field-sizing-content min-h-16 w-full rounded-md border bg-transparent px-3 py-2 text-base shadow-xs transition-[color,box-shadow,border-color] duration-200 ease-out outline-none hover:border-ring/40 focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 disabled:cursor-not-allowed disabled:opacity-50 disabled:hover:border-input aria-invalid:border-destructive aria-invalid:focus-visible:ring-destructive/30 md:text-sm`,r.class))},null,2)),[[e.vModelText,n.value]])}}),$=(0,i.cva)(`inline-flex cursor-pointer items-center justify-center gap-2 rounded-md text-sm font-medium transition-all duration-200 ease-out hover:bg-muted hover:text-muted-foreground hover:shadow-sm active:scale-95 focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50 data-[state=on]:bg-accent data-[state=on]:text-accent-foreground [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0`,{variants:{variant:{default:`bg-transparent`,outline:`border border-input bg-transparent shadow-sm hover:bg-accent hover:text-accent-foreground`},size:{default:`h-9 px-3 min-w-9`,sm:`h-8 px-2 min-w-8`,lg:`h-10 px-3 min-w-10`}},defaultVariants:{variant:`default`,size:`default`}}),Xe=(0,e.defineComponent)({__name:`Toggle`,props:{variant:{},size:{},class:{type:[Boolean,null,String,Object,Array]}},setup(n){let r=n;return(n,i)=>((0,e.openBlock)(),(0,e.createBlock)((0,e.unref)(t.Toggle),{class:(0,e.normalizeClass)((0,e.unref)(s)((0,e.unref)($)({variant:r.variant,size:r.size}),r.class))},{default:(0,e.withCtx)(()=>[(0,e.renderSlot)(n.$slots,`default`)]),_:3},8,[`class`]))}}),Ze=Symbol(`ToggleGroup`),Qe=(0,e.defineComponent)({__name:`ToggleGroup`,props:{variant:{},size:{},class:{type:[Boolean,null,String,Object,Array]}},setup(n){let r=n;return(0,e.provide)(Ze,{variant:(0,e.computed)(()=>r.variant??`default`),size:(0,e.computed)(()=>r.size??`default`)}),(n,i)=>((0,e.openBlock)(),(0,e.createBlock)((0,e.unref)(t.ToggleGroupRoot),{class:(0,e.normalizeClass)((0,e.unref)(s)(`flex items-center justify-center gap-1`,r.class))},{default:(0,e.withCtx)(()=>[(0,e.renderSlot)(n.$slots,`default`)]),_:3},8,[`class`]))}}),$e=(0,e.defineComponent)({__name:`ToggleGroupItem`,props:{variant:{},size:{},class:{type:[Boolean,null,String,Object,Array]},value:{}},setup(n){let r=n,i=(0,e.inject)(Ze,{variant:(0,e.computed)(()=>`default`),size:(0,e.computed)(()=>`default`)}),a=(0,e.computed)(()=>r.variant??i.variant.value),o=(0,e.computed)(()=>r.size??i.size.value);return(n,i)=>((0,e.openBlock)(),(0,e.createBlock)((0,e.unref)(t.ToggleGroupItem),{value:r.value,class:(0,e.normalizeClass)((0,e.unref)(s)((0,e.unref)($)({variant:a.value,size:o.value}),r.class))},{default:(0,e.withCtx)(()=>[(0,e.renderSlot)(n.$slots,`default`)]),_:3},8,[`value`,`class`]))}}),et=(0,e.defineComponent)({inheritAttrs:!1,__name:`TooltipContent`,props:{class:{type:[Boolean,null,String,Object,Array]},sideOffset:{default:4}},setup(n){let r=n;return(n,i)=>((0,e.openBlock)(),(0,e.createBlock)((0,e.unref)(t.TooltipPortal),null,{default:(0,e.withCtx)(()=>[(0,e.createVNode)((0,e.unref)(t.TooltipContent),(0,e.mergeProps)({"side-offset":r.sideOffset,class:(0,e.unref)(s)(`z-50 overflow-hidden rounded-md bg-primary px-3 py-1.5 text-xs text-primary-foreground animate-in fade-in-0 zoom-in-95 duration-150 ease-out data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2`,r.class)},n.$attrs),{default:(0,e.withCtx)(()=>[(0,e.renderSlot)(n.$slots,`default`)]),_:3},16,[`side-offset`,`class`])]),_:3}))}}),tt={Avatar:c,AvatarFallback:u,AvatarImage:l,Badge:f,Button:m,Card:h,CardAction:te,CardContent:ne,CardDescription:ee,CardFooter:re,CardHeader:g,CardTitle:_,Checkbox:oe,Collapsible:t.CollapsibleRoot,CollapsibleContent:v,CollapsibleTrigger:t.CollapsibleTrigger,ComboInput:b,Dialog:t.DialogRoot,DialogClose:t.DialogClose,DialogContent:S,DialogDescription:E,DialogFooter:w,DialogHeader:C,DialogOverlay:x,DialogPortal:t.DialogPortal,DialogTitle:T,DialogTrigger:t.DialogTrigger,DropdownMenu:t.DropdownMenuRoot,DropdownMenuCheckboxItem:k,DropdownMenuContent:D,DropdownMenuGroup:t.DropdownMenuGroup,DropdownMenuItem:O,DropdownMenuLabel:j,DropdownMenuPortal:t.DropdownMenuPortal,DropdownMenuRadioGroup:t.DropdownMenuRadioGroup,DropdownMenuRadioItem:A,DropdownMenuSeparator:M,DropdownMenuShortcut:N,DropdownMenuSub:t.DropdownMenuSub,DropdownMenuSubContent:F,DropdownMenuSubTrigger:P,DropdownMenuTrigger:t.DropdownMenuTrigger,Input:y,Label:I,Menu:R,MenuItem:z,MenuLabel:B,MenuSeparator:V,Menubar:H,MenubarContent:W,MenubarItem:G,MenubarLabel:K,MenubarMenu:t.MenubarMenu,MenubarSeparator:q,MenubarShortcut:ge,MenubarTrigger:U,Popover:t.PopoverRoot,PopoverAnchor:t.PopoverAnchor,PopoverClose:t.PopoverClose,PopoverContent:_e,PopoverPortal:t.PopoverPortal,PopoverTrigger:t.PopoverTrigger,RadioGroup:ve,RadioGroupItem:ye,ScrollArea:be,ScrollBar:J,Select:t.SelectRoot,SelectContent:Se,SelectGroup:t.SelectGroup,SelectItem:Te,SelectLabel:Ce,SelectScrollDownButton:Y,SelectScrollUpButton:X,SelectSeparator:Ee,SelectTrigger:xe,SelectValue:t.SelectValue,Separator:De,Sheet:t.DialogRoot,SheetClose:t.DialogClose,SheetContent:Oe,SheetDescription:Me,SheetFooter:Ae,SheetHeader:ke,SheetOverlay:Z,SheetPortal:t.DialogPortal,SheetTitle:je,SheetTrigger:t.DialogTrigger,Skeleton:Ne,Switch:Fe,Table:Re,TableBody:ze,TableCaption:Ge,TableCell:We,TableFooter:Be,TableHead:Ue,TableHeader:Q,TableRow:Ve,Tabs:t.TabsRoot,TabsContent:Je,TabsList:Ke,TabsTrigger:qe,Textarea:Ye,Toaster:Pe,Toggle:Xe,ToggleGroup:Qe,ToggleGroupItem:$e,Tooltip:t.TooltipRoot,TooltipContent:et,TooltipPortal:t.TooltipPortal,TooltipProvider:t.TooltipProvider,TooltipTrigger:t.TooltipTrigger},nt={install(e){for(let[t,n]of Object.entries(tt))e.component(`Ui${t}`,n)}};exports.Avatar=c,exports.AvatarFallback=u,exports.AvatarImage=l,exports.Badge=f,exports.Button=m,exports.Card=h,exports.CardAction=te,exports.CardContent=ne,exports.CardDescription=ee,exports.CardFooter=re,exports.CardHeader=g,exports.CardTitle=_,exports.Checkbox=oe,Object.defineProperty(exports,"Collapsible",{enumerable:!0,get:function(){return t.CollapsibleRoot}}),exports.CollapsibleContent=v,Object.defineProperty(exports,"CollapsibleTrigger",{enumerable:!0,get:function(){return t.CollapsibleTrigger}}),exports.ComboInput=b,Object.defineProperty(exports,"Dialog",{enumerable:!0,get:function(){return t.DialogRoot}}),Object.defineProperty(exports,"DialogClose",{enumerable:!0,get:function(){return t.DialogClose}}),exports.DialogContent=S,exports.DialogDescription=E,exports.DialogFooter=w,exports.DialogHeader=C,exports.DialogOverlay=x,Object.defineProperty(exports,"DialogPortal",{enumerable:!0,get:function(){return t.DialogPortal}}),exports.DialogTitle=T,Object.defineProperty(exports,"DialogTrigger",{enumerable:!0,get:function(){return t.DialogTrigger}}),Object.defineProperty(exports,"DropdownMenu",{enumerable:!0,get:function(){return t.DropdownMenuRoot}}),exports.DropdownMenuCheckboxItem=k,exports.DropdownMenuContent=D,Object.defineProperty(exports,"DropdownMenuGroup",{enumerable:!0,get:function(){return t.DropdownMenuGroup}}),exports.DropdownMenuItem=O,exports.DropdownMenuLabel=j,Object.defineProperty(exports,"DropdownMenuPortal",{enumerable:!0,get:function(){return t.DropdownMenuPortal}}),Object.defineProperty(exports,"DropdownMenuRadioGroup",{enumerable:!0,get:function(){return t.DropdownMenuRadioGroup}}),exports.DropdownMenuRadioItem=A,exports.DropdownMenuSeparator=M,exports.DropdownMenuShortcut=N,Object.defineProperty(exports,"DropdownMenuSub",{enumerable:!0,get:function(){return t.DropdownMenuSub}}),exports.DropdownMenuSubContent=F,exports.DropdownMenuSubTrigger=P,Object.defineProperty(exports,"DropdownMenuTrigger",{enumerable:!0,get:function(){return t.DropdownMenuTrigger}}),exports.Input=y,exports.Label=I,exports.Menu=R,exports.MenuItem=z,exports.MenuLabel=B,exports.MenuSeparator=V,exports.Menubar=H,exports.MenubarContent=W,exports.MenubarItem=G,exports.MenubarLabel=K,Object.defineProperty(exports,"MenubarMenu",{enumerable:!0,get:function(){return t.MenubarMenu}}),exports.MenubarSeparator=q,exports.MenubarShortcut=ge,exports.MenubarTrigger=U,Object.defineProperty(exports,"Popover",{enumerable:!0,get:function(){return t.PopoverRoot}}),Object.defineProperty(exports,"PopoverAnchor",{enumerable:!0,get:function(){return t.PopoverAnchor}}),Object.defineProperty(exports,"PopoverClose",{enumerable:!0,get:function(){return t.PopoverClose}}),exports.PopoverContent=_e,Object.defineProperty(exports,"PopoverPortal",{enumerable:!0,get:function(){return t.PopoverPortal}}),Object.defineProperty(exports,"PopoverTrigger",{enumerable:!0,get:function(){return t.PopoverTrigger}}),exports.RadioGroup=ve,exports.RadioGroupItem=ye,exports.ScrollArea=be,exports.ScrollBar=J,Object.defineProperty(exports,"Select",{enumerable:!0,get:function(){return t.SelectRoot}}),exports.SelectContent=Se,Object.defineProperty(exports,"SelectGroup",{enumerable:!0,get:function(){return t.SelectGroup}}),exports.SelectItem=Te,exports.SelectLabel=Ce,exports.SelectScrollDownButton=Y,exports.SelectScrollUpButton=X,exports.SelectSeparator=Ee,exports.SelectTrigger=xe,Object.defineProperty(exports,"SelectValue",{enumerable:!0,get:function(){return t.SelectValue}}),exports.Separator=De,Object.defineProperty(exports,"Sheet",{enumerable:!0,get:function(){return t.DialogRoot}}),Object.defineProperty(exports,"SheetClose",{enumerable:!0,get:function(){return t.DialogClose}}),exports.SheetContent=Oe,exports.SheetDescription=Me,exports.SheetFooter=Ae,exports.SheetHeader=ke,exports.SheetOverlay=Z,Object.defineProperty(exports,"SheetPortal",{enumerable:!0,get:function(){return t.DialogPortal}}),exports.SheetTitle=je,Object.defineProperty(exports,"SheetTrigger",{enumerable:!0,get:function(){return t.DialogTrigger}}),exports.Skeleton=Ne,exports.Switch=Fe,exports.Table=Re,exports.TableBody=ze,exports.TableCaption=Ge,exports.TableCell=We,exports.TableFooter=Be,exports.TableHead=Ue,exports.TableHeader=Q,exports.TableRow=Ve,Object.defineProperty(exports,"Tabs",{enumerable:!0,get:function(){return t.TabsRoot}}),exports.TabsContent=Je,exports.TabsList=Ke,exports.TabsTrigger=qe,exports.Textarea=Ye,exports.Toaster=Pe,exports.Toggle=Xe,exports.ToggleGroup=Qe,exports.ToggleGroupItem=$e,Object.defineProperty(exports,"Tooltip",{enumerable:!0,get:function(){return t.TooltipRoot}}),exports.TooltipContent=et,Object.defineProperty(exports,"TooltipPortal",{enumerable:!0,get:function(){return t.TooltipPortal}}),Object.defineProperty(exports,"TooltipProvider",{enumerable:!0,get:function(){return t.TooltipProvider}}),Object.defineProperty(exports,"TooltipTrigger",{enumerable:!0,get:function(){return t.TooltipTrigger}}),exports.UiPlugin=nt,exports.badgeVariants=d,exports.buttonVariants=p,Object.defineProperty(exports,"toast",{enumerable:!0,get:function(){return o.toast}}),exports.toggleVariants=$;