@ug666/ui-vue 0.2.0 → 0.3.0-beta.2

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 (427) hide show
  1. package/dist/THIRD_PARTY_NOTICES.txt +98 -0
  2. package/dist/aliases.d.ts +96 -30
  3. package/dist/aliases.d.ts.map +1 -1
  4. package/dist/blocks/feature-grid.vue.d.ts +21 -13
  5. package/dist/blocks/feature-grid.vue.d.ts.map +1 -1
  6. package/dist/blocks/index.cjs +1 -1
  7. package/dist/blocks/index.cjs.map +1 -1
  8. package/dist/blocks/index.js +1 -136
  9. package/dist/blocks/index.js.map +1 -1
  10. package/dist/blocks/landing-hero.vue.d.ts +31 -20
  11. package/dist/blocks/landing-hero.vue.d.ts.map +1 -1
  12. package/dist/button-CnI0brH7.js +2 -0
  13. package/dist/button-CnI0brH7.js.map +1 -0
  14. package/dist/button-Czk6W5mp.cjs +2 -0
  15. package/dist/button-Czk6W5mp.cjs.map +1 -0
  16. package/dist/components/accordion.vue.d.ts +36 -7
  17. package/dist/components/accordion.vue.d.ts.map +1 -1
  18. package/dist/components/alert.vue.d.ts +14 -8
  19. package/dist/components/alert.vue.d.ts.map +1 -1
  20. package/dist/components/autocomplete.vue.d.ts +53 -0
  21. package/dist/components/autocomplete.vue.d.ts.map +1 -0
  22. package/dist/components/avatar-group.vue.d.ts +3 -2
  23. package/dist/components/avatar-group.vue.d.ts.map +1 -1
  24. package/dist/components/avatar.vue.d.ts +6 -5
  25. package/dist/components/avatar.vue.d.ts.map +1 -1
  26. package/dist/components/backtop.vue.d.ts +24 -0
  27. package/dist/components/backtop.vue.d.ts.map +1 -0
  28. package/dist/components/badge.vue.d.ts +28 -16
  29. package/dist/components/badge.vue.d.ts.map +1 -1
  30. package/dist/components/bar-chart.vue.d.ts +36 -0
  31. package/dist/components/bar-chart.vue.d.ts.map +1 -0
  32. package/dist/components/breadcrumb.vue.d.ts +24 -11
  33. package/dist/components/breadcrumb.vue.d.ts.map +1 -1
  34. package/dist/components/button-group.vue.d.ts +92 -0
  35. package/dist/components/button-group.vue.d.ts.map +1 -0
  36. package/dist/components/button.vue.d.ts +77 -39
  37. package/dist/components/button.vue.d.ts.map +1 -1
  38. package/dist/components/calendar.vue.d.ts +78 -0
  39. package/dist/components/calendar.vue.d.ts.map +1 -0
  40. package/dist/components/card.vue.d.ts +27 -11
  41. package/dist/components/card.vue.d.ts.map +1 -1
  42. package/dist/components/carousel.vue.d.ts +77 -0
  43. package/dist/components/carousel.vue.d.ts.map +1 -0
  44. package/dist/components/cascader.vue.d.ts +57 -0
  45. package/dist/components/cascader.vue.d.ts.map +1 -0
  46. package/dist/components/checkbox-group.vue.d.ts +43 -0
  47. package/dist/components/checkbox-group.vue.d.ts.map +1 -0
  48. package/dist/components/checkbox.vue.d.ts +23 -24
  49. package/dist/components/checkbox.vue.d.ts.map +1 -1
  50. package/dist/components/collapsible.vue.d.ts +73 -0
  51. package/dist/components/collapsible.vue.d.ts.map +1 -0
  52. package/dist/components/color-picker.vue.d.ts +35 -0
  53. package/dist/components/color-picker.vue.d.ts.map +1 -0
  54. package/dist/components/config-provider.vue.d.ts +79 -0
  55. package/dist/components/config-provider.vue.d.ts.map +1 -0
  56. package/dist/components/container.vue.d.ts +141 -0
  57. package/dist/components/container.vue.d.ts.map +1 -0
  58. package/dist/components/context/accordion-context.d.ts +9 -2
  59. package/dist/components/context/accordion-context.d.ts.map +1 -1
  60. package/dist/components/context/button-group.d.ts +40 -0
  61. package/dist/components/context/button-group.d.ts.map +1 -0
  62. package/dist/components/context/checkbox-context.d.ts +14 -0
  63. package/dist/components/context/checkbox-context.d.ts.map +1 -0
  64. package/dist/components/context/context-menu-context.d.ts +4 -0
  65. package/dist/components/context/context-menu-context.d.ts.map +1 -1
  66. package/dist/components/context/drawer-context.d.ts +26 -0
  67. package/dist/components/context/drawer-context.d.ts.map +1 -1
  68. package/dist/components/context/dropdown-context.d.ts +10 -0
  69. package/dist/components/context/dropdown-context.d.ts.map +1 -1
  70. package/dist/components/context/form-context.d.ts +31 -1
  71. package/dist/components/context/form-context.d.ts.map +1 -1
  72. package/dist/components/context/navigation-menu-context.d.ts +11 -0
  73. package/dist/components/context/navigation-menu-context.d.ts.map +1 -1
  74. package/dist/components/context/popover-context.d.ts +2 -0
  75. package/dist/components/context/popover-context.d.ts.map +1 -1
  76. package/dist/components/context/radio-context.d.ts +11 -3
  77. package/dist/components/context/radio-context.d.ts.map +1 -1
  78. package/dist/components/context/tabs-context.d.ts +18 -0
  79. package/dist/components/context/tabs-context.d.ts.map +1 -1
  80. package/dist/components/context/tooltip-context.d.ts +4 -0
  81. package/dist/components/context/tooltip-context.d.ts.map +1 -1
  82. package/dist/components/context-menu.vue.d.ts +6 -5
  83. package/dist/components/context-menu.vue.d.ts.map +1 -1
  84. package/dist/components/data-panel.vue.d.ts +58 -0
  85. package/dist/components/data-panel.vue.d.ts.map +1 -0
  86. package/dist/components/date-picker.vue.d.ts +65 -0
  87. package/dist/components/date-picker.vue.d.ts.map +1 -0
  88. package/dist/components/date-range-picker.vue.d.ts +62 -0
  89. package/dist/components/date-range-picker.vue.d.ts.map +1 -0
  90. package/dist/components/date-time-picker.vue.d.ts +71 -0
  91. package/dist/components/date-time-picker.vue.d.ts.map +1 -0
  92. package/dist/components/descriptions.vue.d.ts +12 -18
  93. package/dist/components/descriptions.vue.d.ts.map +1 -1
  94. package/dist/components/dialog.vue.d.ts +19 -3
  95. package/dist/components/dialog.vue.d.ts.map +1 -1
  96. package/dist/components/dock.vue.d.ts +76 -0
  97. package/dist/components/dock.vue.d.ts.map +1 -0
  98. package/dist/components/donut-chart.vue.d.ts +34 -0
  99. package/dist/components/donut-chart.vue.d.ts.map +1 -0
  100. package/dist/components/drawer.vue.d.ts +71 -16
  101. package/dist/components/drawer.vue.d.ts.map +1 -1
  102. package/dist/components/dropdown.vue.d.ts +55 -12
  103. package/dist/components/dropdown.vue.d.ts.map +1 -1
  104. package/dist/components/empty-state.vue.d.ts +20 -20
  105. package/dist/components/empty-state.vue.d.ts.map +1 -1
  106. package/dist/components/fab.vue.d.ts +79 -0
  107. package/dist/components/fab.vue.d.ts.map +1 -0
  108. package/dist/components/fieldset.vue.d.ts +45 -0
  109. package/dist/components/fieldset.vue.d.ts.map +1 -0
  110. package/dist/components/file-input.vue.d.ts +45 -0
  111. package/dist/components/file-input.vue.d.ts.map +1 -0
  112. package/dist/components/form.vue.d.ts +101 -23
  113. package/dist/components/form.vue.d.ts.map +1 -1
  114. package/dist/components/gauge-chart.vue.d.ts +34 -0
  115. package/dist/components/gauge-chart.vue.d.ts.map +1 -0
  116. package/dist/components/heatmap-chart.vue.d.ts +42 -0
  117. package/dist/components/heatmap-chart.vue.d.ts.map +1 -0
  118. package/dist/components/icon.vue.d.ts +28 -0
  119. package/dist/components/icon.vue.d.ts.map +1 -0
  120. package/dist/components/image-viewer.vue.d.ts +28 -0
  121. package/dist/components/image-viewer.vue.d.ts.map +1 -0
  122. package/dist/components/image.vue.d.ts +37 -0
  123. package/dist/components/image.vue.d.ts.map +1 -0
  124. package/dist/components/index.cjs +1 -1
  125. package/dist/components/index.d.ts +78 -12
  126. package/dist/components/index.d.ts.map +1 -1
  127. package/dist/components/index.js +1 -5
  128. package/dist/components/indicator.vue.d.ts +43 -0
  129. package/dist/components/indicator.vue.d.ts.map +1 -0
  130. package/dist/components/infinite-scroll.vue.d.ts +42 -0
  131. package/dist/components/infinite-scroll.vue.d.ts.map +1 -0
  132. package/dist/components/input.vue.d.ts +75 -29
  133. package/dist/components/input.vue.d.ts.map +1 -1
  134. package/dist/components/join.vue.d.ts +35 -0
  135. package/dist/components/join.vue.d.ts.map +1 -0
  136. package/dist/components/kbd.vue.d.ts +21 -0
  137. package/dist/components/kbd.vue.d.ts.map +1 -0
  138. package/dist/components/label.vue.d.ts +12 -19
  139. package/dist/components/label.vue.d.ts.map +1 -1
  140. package/dist/components/layout.d.ts +194 -0
  141. package/dist/components/layout.d.ts.map +1 -0
  142. package/dist/components/link.vue.d.ts +55 -0
  143. package/dist/components/link.vue.d.ts.map +1 -0
  144. package/dist/components/list.vue.d.ts +74 -0
  145. package/dist/components/list.vue.d.ts.map +1 -0
  146. package/dist/components/loading.vue.d.ts +25 -0
  147. package/dist/components/loading.vue.d.ts.map +1 -0
  148. package/dist/components/modal.vue.d.ts +42 -26
  149. package/dist/components/modal.vue.d.ts.map +1 -1
  150. package/dist/components/navbar.vue.d.ts +132 -0
  151. package/dist/components/navbar.vue.d.ts.map +1 -0
  152. package/dist/components/navigation-menu.vue.d.ts +80 -16
  153. package/dist/components/navigation-menu.vue.d.ts.map +1 -1
  154. package/dist/components/notification.vue.d.ts +29 -0
  155. package/dist/components/notification.vue.d.ts.map +1 -0
  156. package/dist/components/number-input.vue.d.ts +53 -25
  157. package/dist/components/number-input.vue.d.ts.map +1 -1
  158. package/dist/components/otp-input.vue.d.ts +21 -9
  159. package/dist/components/otp-input.vue.d.ts.map +1 -1
  160. package/dist/components/pagination.vue.d.ts +37 -15
  161. package/dist/components/pagination.vue.d.ts.map +1 -1
  162. package/dist/components/popconfirm.vue.d.ts +49 -0
  163. package/dist/components/popconfirm.vue.d.ts.map +1 -0
  164. package/dist/components/popover.vue.d.ts +11 -10
  165. package/dist/components/popover.vue.d.ts.map +1 -1
  166. package/dist/components/progress.vue.d.ts +29 -5
  167. package/dist/components/progress.vue.d.ts.map +1 -1
  168. package/dist/components/radar-chart.vue.d.ts +37 -0
  169. package/dist/components/radar-chart.vue.d.ts.map +1 -0
  170. package/dist/components/radial-progress.vue.d.ts +22 -0
  171. package/dist/components/radial-progress.vue.d.ts.map +1 -0
  172. package/dist/components/radio-group.vue.d.ts +29 -30
  173. package/dist/components/radio-group.vue.d.ts.map +1 -1
  174. package/dist/components/radio.vue.d.ts +32 -17
  175. package/dist/components/radio.vue.d.ts.map +1 -1
  176. package/dist/components/ranking-list.vue.d.ts +33 -0
  177. package/dist/components/ranking-list.vue.d.ts.map +1 -0
  178. package/dist/components/rating.vue.d.ts +36 -0
  179. package/dist/components/rating.vue.d.ts.map +1 -0
  180. package/dist/components/result.vue.d.ts +28 -0
  181. package/dist/components/result.vue.d.ts.map +1 -0
  182. package/dist/components/scrollbar.vue.d.ts +65 -0
  183. package/dist/components/scrollbar.vue.d.ts.map +1 -0
  184. package/dist/components/select.vue.d.ts +83 -35
  185. package/dist/components/select.vue.d.ts.map +1 -1
  186. package/dist/components/separator.vue.d.ts +19 -8
  187. package/dist/components/separator.vue.d.ts.map +1 -1
  188. package/dist/components/sheet.vue.d.ts +26 -27
  189. package/dist/components/sheet.vue.d.ts.map +1 -1
  190. package/dist/components/sidebar.vue.d.ts +61 -44
  191. package/dist/components/sidebar.vue.d.ts.map +1 -1
  192. package/dist/components/skeleton.vue.d.ts +3 -2
  193. package/dist/components/skeleton.vue.d.ts.map +1 -1
  194. package/dist/components/slider.vue.d.ts +56 -22
  195. package/dist/components/slider.vue.d.ts.map +1 -1
  196. package/dist/components/space.vue.d.ts +35 -0
  197. package/dist/components/space.vue.d.ts.map +1 -0
  198. package/dist/components/spinner.vue.d.ts +10 -5
  199. package/dist/components/spinner.vue.d.ts.map +1 -1
  200. package/dist/components/splitter.vue.d.ts +244 -0
  201. package/dist/components/splitter.vue.d.ts.map +1 -0
  202. package/dist/components/stack.vue.d.ts +28 -0
  203. package/dist/components/stack.vue.d.ts.map +1 -0
  204. package/dist/components/stacked-bar-chart.vue.d.ts +36 -0
  205. package/dist/components/stacked-bar-chart.vue.d.ts.map +1 -0
  206. package/dist/components/statistic-card.vue.d.ts +54 -0
  207. package/dist/components/statistic-card.vue.d.ts.map +1 -0
  208. package/dist/components/statistic.vue.d.ts +24 -21
  209. package/dist/components/statistic.vue.d.ts.map +1 -1
  210. package/dist/components/steps.vue.d.ts +13 -19
  211. package/dist/components/steps.vue.d.ts.map +1 -1
  212. package/dist/components/switch.vue.d.ts +50 -19
  213. package/dist/components/switch.vue.d.ts.map +1 -1
  214. package/dist/components/table.vue.d.ts +29 -11
  215. package/dist/components/table.vue.d.ts.map +1 -1
  216. package/dist/components/tabs.vue.d.ts +87 -10
  217. package/dist/components/tabs.vue.d.ts.map +1 -1
  218. package/dist/components/tag.vue.d.ts +16 -20
  219. package/dist/components/tag.vue.d.ts.map +1 -1
  220. package/dist/components/text.vue.d.ts +32 -0
  221. package/dist/components/text.vue.d.ts.map +1 -0
  222. package/dist/components/textarea.vue.d.ts +58 -26
  223. package/dist/components/textarea.vue.d.ts.map +1 -1
  224. package/dist/components/theme-controller.vue.d.ts +43 -0
  225. package/dist/components/theme-controller.vue.d.ts.map +1 -0
  226. package/dist/components/time-picker.vue.d.ts +53 -0
  227. package/dist/components/time-picker.vue.d.ts.map +1 -0
  228. package/dist/components/time-range-picker.vue.d.ts +50 -0
  229. package/dist/components/time-range-picker.vue.d.ts.map +1 -0
  230. package/dist/components/time-select.vue.d.ts +47 -0
  231. package/dist/components/time-select.vue.d.ts.map +1 -0
  232. package/dist/components/timeline.vue.d.ts +81 -0
  233. package/dist/components/timeline.vue.d.ts.map +1 -0
  234. package/dist/components/toast-state.d.ts +76 -9
  235. package/dist/components/toast-state.d.ts.map +1 -1
  236. package/dist/components/toast.vue.d.ts +15 -3
  237. package/dist/components/toast.vue.d.ts.map +1 -1
  238. package/dist/components/tooltip.vue.d.ts +12 -6
  239. package/dist/components/tooltip.vue.d.ts.map +1 -1
  240. package/dist/components/transfer.vue.d.ts +48 -0
  241. package/dist/components/transfer.vue.d.ts.map +1 -0
  242. package/dist/components/tree-select.vue.d.ts +66 -0
  243. package/dist/components/tree-select.vue.d.ts.map +1 -0
  244. package/dist/components/tree.vue.d.ts +88 -0
  245. package/dist/components/tree.vue.d.ts.map +1 -0
  246. package/dist/components/trend-chart.vue.d.ts +47 -0
  247. package/dist/components/trend-chart.vue.d.ts.map +1 -0
  248. package/dist/components/types/forms.d.ts +15 -0
  249. package/dist/components/types/forms.d.ts.map +1 -0
  250. package/dist/components/types/foundation.d.ts +5 -0
  251. package/dist/components/types/foundation.d.ts.map +1 -0
  252. package/dist/components/upload.vue.d.ts +48 -0
  253. package/dist/components/upload.vue.d.ts.map +1 -0
  254. package/dist/composables/index.cjs +1 -1
  255. package/dist/composables/index.d.ts +2 -1
  256. package/dist/composables/index.d.ts.map +1 -1
  257. package/dist/composables/index.js +1 -3
  258. package/dist/composables/use-copy-to-clipboard.d.ts.map +1 -1
  259. package/dist/composables/use-event-listener.d.ts.map +1 -1
  260. package/dist/composables/use-form.d.ts +41 -28
  261. package/dist/composables/use-form.d.ts.map +1 -1
  262. package/dist/composables/use-local-storage.d.ts.map +1 -1
  263. package/dist/composables/use-media-query.d.ts.map +1 -1
  264. package/dist/composables/use-pagination.d.ts.map +1 -1
  265. package/dist/composables/use-toast.d.ts +2 -2
  266. package/dist/composables/use-toast.d.ts.map +1 -1
  267. package/dist/composables-BKdJUtth.cjs +2 -0
  268. package/dist/composables-BKdJUtth.cjs.map +1 -0
  269. package/dist/composables-CeSrWzj1.js +2 -0
  270. package/dist/composables-CeSrWzj1.js.map +1 -0
  271. package/dist/global.cjs +1 -1
  272. package/dist/global.d.ts +95 -0
  273. package/dist/global.d.ts.map +1 -1
  274. package/dist/icon-Che64mHe.cjs +2 -0
  275. package/dist/icon-Che64mHe.cjs.map +1 -0
  276. package/dist/icon-F_GVho3U.js +2 -0
  277. package/dist/icon-F_GVho3U.js.map +1 -0
  278. package/dist/index.cjs +1 -1
  279. package/dist/index.cjs.map +1 -1
  280. package/dist/index.d.ts +88 -21
  281. package/dist/index.d.ts.map +1 -1
  282. package/dist/index.js +1 -334
  283. package/dist/index.js.map +1 -1
  284. package/dist/input-Bdyp6ABh.cjs +2 -0
  285. package/dist/input-Bdyp6ABh.cjs.map +1 -0
  286. package/dist/input-DERQW5r8.js +2 -0
  287. package/dist/input-DERQW5r8.js.map +1 -0
  288. package/dist/internal/admin-horizontal-navigation.vue.d.ts +10 -0
  289. package/dist/internal/admin-horizontal-navigation.vue.d.ts.map +1 -0
  290. package/dist/internal/data-table-header.vue.d.ts +35 -0
  291. package/dist/internal/data-table-header.vue.d.ts.map +1 -0
  292. package/dist/internal/date-mode-panel.vue.d.ts +15 -0
  293. package/dist/internal/date-mode-panel.vue.d.ts.map +1 -0
  294. package/dist/internal/date-time-control.vue.d.ts +76 -0
  295. package/dist/internal/date-time-control.vue.d.ts.map +1 -0
  296. package/dist/internal/date-time-picker-panel.vue.d.ts +16 -0
  297. package/dist/internal/date-time-picker-panel.vue.d.ts.map +1 -0
  298. package/dist/internal/date-time-range-control.vue.d.ts +70 -0
  299. package/dist/internal/date-time-range-control.vue.d.ts.map +1 -0
  300. package/dist/internal/date-time-range-panel.vue.d.ts +13 -0
  301. package/dist/internal/date-time-range-panel.vue.d.ts.map +1 -0
  302. package/dist/internal/notification-item.vue.d.ts +14 -0
  303. package/dist/internal/notification-item.vue.d.ts.map +1 -0
  304. package/dist/internal/option-window.vue.d.ts +28 -0
  305. package/dist/internal/option-window.vue.d.ts.map +1 -0
  306. package/dist/internal/sidebar-navigation.d.ts +31 -0
  307. package/dist/internal/sidebar-navigation.d.ts.map +1 -0
  308. package/dist/internal/time-panel.vue.d.ts +15 -0
  309. package/dist/internal/time-panel.vue.d.ts.map +1 -0
  310. package/dist/internal/time-picker-panel.vue.d.ts +14 -0
  311. package/dist/internal/time-picker-panel.vue.d.ts.map +1 -0
  312. package/dist/internal/use-cascader-lazy.d.ts +20 -0
  313. package/dist/internal/use-cascader-lazy.d.ts.map +1 -0
  314. package/dist/internal/use-overlay-focus.d.ts +3 -0
  315. package/dist/internal/use-overlay-focus.d.ts.map +1 -0
  316. package/dist/internal/use-overlay-lifecycle.d.ts +3 -0
  317. package/dist/internal/use-overlay-lifecycle.d.ts.map +1 -0
  318. package/dist/internal/use-presence.d.ts +8 -0
  319. package/dist/internal/use-presence.d.ts.map +1 -0
  320. package/dist/internal/use-transfer-remote.d.ts +32 -0
  321. package/dist/internal/use-transfer-remote.d.ts.map +1 -0
  322. package/dist/internal/use-tree-data.d.ts +8 -0
  323. package/dist/internal/use-tree-data.d.ts.map +1 -0
  324. package/dist/patterns/admin-shell.vue.d.ts +121 -19
  325. package/dist/patterns/admin-shell.vue.d.ts.map +1 -1
  326. package/dist/patterns/app-tabs.vue.d.ts +51 -0
  327. package/dist/patterns/app-tabs.vue.d.ts.map +1 -0
  328. package/dist/patterns/confirm-dialog.vue.d.ts +14 -16
  329. package/dist/patterns/confirm-dialog.vue.d.ts.map +1 -1
  330. package/dist/patterns/copy-field.vue.d.ts +21 -15
  331. package/dist/patterns/copy-field.vue.d.ts.map +1 -1
  332. package/dist/patterns/data-table-identity.vue.d.ts +26 -0
  333. package/dist/patterns/data-table-identity.vue.d.ts.map +1 -0
  334. package/dist/patterns/data-table-toolbar.vue.d.ts +32 -0
  335. package/dist/patterns/data-table-toolbar.vue.d.ts.map +1 -0
  336. package/dist/patterns/data-table.vue.d.ts +105 -0
  337. package/dist/patterns/data-table.vue.d.ts.map +1 -0
  338. package/dist/patterns/index.cjs +1 -1
  339. package/dist/patterns/index.cjs.map +1 -1
  340. package/dist/patterns/index.d.ts +25 -0
  341. package/dist/patterns/index.d.ts.map +1 -1
  342. package/dist/patterns/index.js +1 -294
  343. package/dist/patterns/index.js.map +1 -1
  344. package/dist/patterns/page-header.vue.d.ts +31 -23
  345. package/dist/patterns/page-header.vue.d.ts.map +1 -1
  346. package/dist/patterns/quick-access.vue.d.ts +43 -0
  347. package/dist/patterns/quick-access.vue.d.ts.map +1 -0
  348. package/dist/patterns/selection-list.vue.d.ts +51 -0
  349. package/dist/patterns/selection-list.vue.d.ts.map +1 -0
  350. package/dist/patterns/theme-configurator-choice-group.vue.d.ts +22 -0
  351. package/dist/patterns/theme-configurator-choice-group.vue.d.ts.map +1 -0
  352. package/dist/patterns/theme-configurator-dialog.vue.d.ts +58 -0
  353. package/dist/patterns/theme-configurator-dialog.vue.d.ts.map +1 -0
  354. package/dist/patterns/theme-configurator.vue.d.ts +44 -0
  355. package/dist/patterns/theme-configurator.vue.d.ts.map +1 -0
  356. package/dist/patterns/tree-table.vue.d.ts +100 -0
  357. package/dist/patterns/tree-table.vue.d.ts.map +1 -0
  358. package/dist/plugin.d.ts.map +1 -1
  359. package/dist/primitives/index.cjs +1 -1
  360. package/dist/primitives/index.d.ts +19 -3
  361. package/dist/primitives/index.d.ts.map +1 -1
  362. package/dist/primitives/index.js +1 -3
  363. package/dist/resolver.cjs +1 -1
  364. package/dist/resolver.cjs.map +1 -1
  365. package/dist/resolver.d.ts.map +1 -1
  366. package/dist/resolver.js +1 -32
  367. package/dist/resolver.js.map +1 -1
  368. package/dist/sidebar-O1_kmFSE.js +2 -0
  369. package/dist/sidebar-O1_kmFSE.js.map +1 -0
  370. package/dist/sidebar-VFEdi6LG.cjs +2 -0
  371. package/dist/sidebar-VFEdi6LG.cjs.map +1 -0
  372. package/dist/styles.css +2 -2502
  373. package/dist/theme.cjs +2 -0
  374. package/dist/theme.cjs.map +1 -0
  375. package/dist/theme.d.ts +177 -74
  376. package/dist/theme.d.ts.map +1 -1
  377. package/dist/theme.js +2 -0
  378. package/dist/theme.js.map +1 -0
  379. package/dist/themes/default.css +1 -0
  380. package/dist/themes/mecha.css +1 -0
  381. package/dist/themes/minimal.css +1 -0
  382. package/dist/toast-state-Ba1YMGgq.js +2 -0
  383. package/dist/toast-state-Ba1YMGgq.js.map +1 -0
  384. package/dist/toast-state-DoeeKJ8T.cjs +2 -0
  385. package/dist/toast-state-DoeeKJ8T.cjs.map +1 -0
  386. package/dist/tokens.css +2 -86
  387. package/dist/tree-select-CEkJjZWg.cjs +2 -0
  388. package/dist/tree-select-CEkJjZWg.cjs.map +1 -0
  389. package/dist/tree-select-Ca9zSsoU.js +2 -0
  390. package/dist/tree-select-Ca9zSsoU.js.map +1 -0
  391. package/dist/use-media-query-CkB_D997.cjs +2 -0
  392. package/dist/use-media-query-CkB_D997.cjs.map +1 -0
  393. package/dist/use-media-query-RMDst192.js +2 -0
  394. package/dist/use-media-query-RMDst192.js.map +1 -0
  395. package/package.json +25 -17
  396. package/dist/aliases-CKe0wVQy.cjs +0 -2
  397. package/dist/aliases-CKe0wVQy.cjs.map +0 -1
  398. package/dist/aliases-u3xep8jx.js +0 -2732
  399. package/dist/aliases-u3xep8jx.js.map +0 -1
  400. package/dist/button-C10AiP5_.cjs +0 -2
  401. package/dist/button-C10AiP5_.cjs.map +0 -1
  402. package/dist/button-Sy9e0tiI.js +0 -1742
  403. package/dist/button-Sy9e0tiI.js.map +0 -1
  404. package/dist/component-layers.d.ts +0 -199
  405. package/dist/component-layers.d.ts.map +0 -1
  406. package/dist/composables-GXmQiqgg.cjs +0 -2
  407. package/dist/composables-GXmQiqgg.cjs.map +0 -1
  408. package/dist/composables-YMNfao5g.js +0 -251
  409. package/dist/composables-YMNfao5g.js.map +0 -1
  410. package/dist/labs/index.cjs +0 -2
  411. package/dist/labs/index.cjs.map +0 -1
  412. package/dist/labs/index.d.ts +0 -10
  413. package/dist/labs/index.d.ts.map +0 -1
  414. package/dist/labs/index.js +0 -9
  415. package/dist/labs/index.js.map +0 -1
  416. package/dist/separator-BnNQAp6A.js +0 -259
  417. package/dist/separator-BnNQAp6A.js.map +0 -1
  418. package/dist/separator-Bynwn-we.cjs +0 -2
  419. package/dist/separator-Bynwn-we.cjs.map +0 -1
  420. package/dist/sidebar-BnZB7vlK.js +0 -344
  421. package/dist/sidebar-BnZB7vlK.js.map +0 -1
  422. package/dist/sidebar-xKPzL0NQ.cjs +0 -2
  423. package/dist/sidebar-xKPzL0NQ.cjs.map +0 -1
  424. package/dist/toast-state-BBoVvR0u.cjs +0 -2
  425. package/dist/toast-state-BBoVvR0u.cjs.map +0 -1
  426. package/dist/toast-state-Crugc-IE.js +0 -50
  427. package/dist/toast-state-Crugc-IE.js.map +0 -1
@@ -1,2732 +0,0 @@
1
- import { n as e, t } from "./button-Sy9e0tiI.js";
2
- import { a as n, c as r, d as i, f as a, i as o, l as s, n as c, o as l, r as u, s as d, t as f, u as p } from "./separator-BnNQAp6A.js";
3
- import { n as m, t as h } from "./sidebar-BnZB7vlK.js";
4
- import { r as g, t as _ } from "./toast-state-Crugc-IE.js";
5
- import { Fragment as v, Teleport as y, computed as b, createBlock as x, createCommentVNode as S, createElementBlock as C, createElementVNode as w, createTextVNode as T, createVNode as E, defineComponent as D, h as O, inject as k, mergeModels as A, mergeProps as ee, nextTick as j, normalizeClass as M, normalizeStyle as N, onBeforeUnmount as P, openBlock as F, provide as I, ref as L, renderList as R, renderSlot as z, resolveDynamicComponent as B, toDisplayString as V, unref as H, useAttrs as te, useId as U, useModel as W, useSlots as ne, watch as G, withModifiers as re } from "vue";
6
- import { AlertCircle as ie, AlertTriangle as ae, Check as oe, CheckCircle as se, ChevronDown as ce, ChevronLeft as le, ChevronRight as ue, Info as de, Minus as K, Plus as fe, TrendingDown as pe, TrendingUp as me, User as he, X as ge } from "lucide-vue-next";
7
- //#region \0rolldown/runtime.js
8
- var _e = Object.defineProperty, ve = (e, t) => {
9
- let n = {};
10
- for (var r in e) _e(n, r, {
11
- get: e[r],
12
- enumerable: !0
13
- });
14
- return t || _e(n, Symbol.toStringTag, { value: "Module" }), n;
15
- }, ye = ["aria-describedby"], be = { class: "px-6 pt-6 pb-4" }, xe = {
16
- id: "dialog-title",
17
- class: "text-base font-bold text-text-primary"
18
- }, Se = {
19
- key: 0,
20
- id: "dialog-description",
21
- class: "mt-2 text-sm text-text-secondary"
22
- }, Ce = { class: "flex items-center justify-end gap-2 border-t border-border-subtle px-6 py-4" }, we = /* @__PURE__ */ D({
23
- name: "UDialog",
24
- __name: "dialog",
25
- props: /* @__PURE__ */ A({
26
- title: {},
27
- description: { default: void 0 },
28
- variant: { default: "default" },
29
- cancelText: { default: "取消" },
30
- confirmText: { default: "确认" },
31
- class: { default: void 0 }
32
- }, {
33
- open: {
34
- type: Boolean,
35
- default: !1
36
- },
37
- openModifiers: {}
38
- }),
39
- emits: /* @__PURE__ */ A(["confirm", "cancel"], ["update:open"]),
40
- setup(t, { emit: n }) {
41
- let r = t, i = n, a = W(t, "open"), o = {
42
- default: "bg-primary text-primary-fg hover:bg-primary-hover focus-visible:ring-ring",
43
- destructive: "bg-danger text-danger-fg hover:bg-danger-hover focus-visible:ring-danger"
44
- }, s = b(() => e("fixed inset-0 z-[90] flex items-center justify-center p-4", r.class)), c = b(() => e("inline-flex h-9 items-center justify-center rounded-md px-4 text-sm font-medium transition-colors", "focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-offset-2", o[r.variant]));
45
- function l() {
46
- i("cancel"), a.value = !1;
47
- }
48
- function u() {
49
- i("confirm"), a.value = !1;
50
- }
51
- function d(e) {
52
- e.key === "Escape" && a.value && l();
53
- }
54
- return G(a, (e) => {
55
- typeof document > "u" || (e ? (document.body.style.overflow = "hidden", document.addEventListener("keydown", d)) : (document.body.style.overflow = "", document.removeEventListener("keydown", d)));
56
- }, { immediate: !0 }), P(() => {
57
- typeof document > "u" || (document.body.style.overflow = "", document.removeEventListener("keydown", d));
58
- }), (n, r) => (F(), x(y, { to: "body" }, [a.value ? (F(), C("div", {
59
- key: 0,
60
- class: M(s.value),
61
- role: "alertdialog",
62
- "aria-modal": "true",
63
- "aria-labelledby": "dialog-title",
64
- "aria-describedby": t.description ? "dialog-description" : void 0
65
- }, [w("div", {
66
- class: "absolute inset-0 bg-overlay",
67
- "aria-hidden": "true",
68
- onClick: l
69
- }), w("div", {
70
- class: "relative z-10 w-full max-w-sm rounded-lg border border-border-base bg-surface-1 shadow-xl",
71
- onClick: r[0] || (r[0] = re(() => {}, ["stop"]))
72
- }, [w("div", be, [w("h2", xe, V(t.title), 1), t.description ? (F(), C("p", Se, V(t.description), 1)) : S("", !0)]), w("div", Ce, [w("button", {
73
- type: "button",
74
- class: M(H(e)("inline-flex h-9 items-center justify-center rounded-md border border-border-strong bg-surface-1 px-4 text-sm font-medium text-text-secondary transition-colors", "hover:bg-surface-2 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-offset-2 focus-visible:ring-ring/30")),
75
- onClick: l
76
- }, V(t.cancelText), 3), w("button", {
77
- type: "button",
78
- class: M(c.value),
79
- onClick: u
80
- }, V(t.confirmText), 3)])])], 10, ye)) : S("", !0)]));
81
- }
82
- }), Te = Symbol("ug-drawer-context");
83
- //#endregion
84
- //#region src/components/drawer.vue?vue&type=script&setup=true&lang.ts
85
- function Ee() {
86
- let e = k(Te);
87
- if (!e) throw Error("Drawer 子组件必须在 <UDrawer> 内使用");
88
- return e;
89
- }
90
- var De = {
91
- right: "inset-y-0 right-0 h-full w-80 max-w-full",
92
- left: "inset-y-0 left-0 h-full w-80 max-w-full",
93
- top: "inset-x-0 top-0 w-full max-h-[80vh]",
94
- bottom: "inset-x-0 bottom-0 w-full max-h-[80vh]"
95
- }, Oe = D({
96
- name: "UDrawerContent",
97
- props: { class: {
98
- type: String,
99
- default: void 0
100
- } },
101
- setup(t, { slots: n }) {
102
- let r = Ee(), i = b(() => e("absolute flex flex-col bg-surface-1 shadow-xl transition-transform duration-300 ease-in-out", De[r.side.value], t.class));
103
- return () => r.open.value ? O(y, { to: "body" }, [O("div", {
104
- class: "fixed inset-0 z-50",
105
- role: "dialog",
106
- "aria-modal": "true"
107
- }, [O("div", {
108
- class: "absolute inset-0 bg-overlay transition-opacity",
109
- "aria-hidden": "true",
110
- onClick: () => r.setOpen(!1)
111
- }), O("div", {
112
- class: i.value,
113
- onClick: (e) => e.stopPropagation()
114
- }, n.default?.())])]) : null;
115
- }
116
- }), ke = D({
117
- name: "UDrawerHeader",
118
- props: { class: {
119
- type: String,
120
- default: void 0
121
- } },
122
- setup(t, { slots: n }) {
123
- let r = b(() => e("flex flex-col gap-1.5 border-b border-border-base px-6 py-4", t.class));
124
- return () => O("div", { class: r.value }, n.default?.());
125
- }
126
- }), Ae = D({
127
- name: "UDrawerTitle",
128
- props: { class: {
129
- type: String,
130
- default: void 0
131
- } },
132
- setup(t, { slots: n }) {
133
- let r = b(() => e("text-lg font-semibold text-text-primary", t.class));
134
- return () => O("h2", { class: r.value }, n.default?.());
135
- }
136
- }), je = D({
137
- name: "UDrawerDescription",
138
- props: { class: {
139
- type: String,
140
- default: void 0
141
- } },
142
- setup(t, { slots: n }) {
143
- let r = b(() => e("text-sm text-text-secondary", t.class));
144
- return () => O("p", { class: r.value }, n.default?.());
145
- }
146
- }), Me = D({
147
- name: "UDrawerFooter",
148
- props: { class: {
149
- type: String,
150
- default: void 0
151
- } },
152
- setup(t, { slots: n }) {
153
- let r = b(() => e("mt-auto flex items-center justify-end gap-2 border-t border-border-base px-6 py-4", t.class));
154
- return () => O("div", { class: r.value }, n.default?.());
155
- }
156
- }), Ne = D({
157
- name: "UDrawerClose",
158
- props: { class: {
159
- type: String,
160
- default: void 0
161
- } },
162
- emits: { click: (e) => !0 },
163
- setup(t, { emit: n, slots: r }) {
164
- let i = Ee(), a = b(() => e("inline-flex items-center justify-center rounded-md px-4 py-2 text-sm font-medium text-text-secondary transition-colors hover:bg-surface-3 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring/30", t.class));
165
- function o(e) {
166
- i.setOpen(!1), n("click", e);
167
- }
168
- return () => O("button", {
169
- type: "button",
170
- class: a.value,
171
- onClick: o
172
- }, r.default?.() ?? [O(ge, { size: 18 })]);
173
- }
174
- }), Pe = /* @__PURE__ */ D({
175
- name: "UDrawer",
176
- __name: "drawer",
177
- props: /* @__PURE__ */ A({
178
- side: { default: "right" },
179
- class: { default: void 0 }
180
- }, {
181
- open: {
182
- type: Boolean,
183
- default: !1
184
- },
185
- openModifiers: {}
186
- }),
187
- emits: /* @__PURE__ */ A(["openChange"], ["update:open"]),
188
- setup(e, { emit: t }) {
189
- let n = e, r = t, i = W(e, "open"), a = b(() => n.side);
190
- function o(e) {
191
- i.value = e, r("openChange", e);
192
- }
193
- function s(e) {
194
- e.key === "Escape" && i.value && o(!1);
195
- }
196
- return G(i, (e) => {
197
- typeof document > "u" || (document.body.style.overflow = e ? "hidden" : "", e ? document.addEventListener("keydown", s) : document.removeEventListener("keydown", s));
198
- }, { immediate: !0 }), P(() => {
199
- typeof document > "u" || (document.body.style.overflow = "", document.removeEventListener("keydown", s));
200
- }), I(Te, {
201
- open: i,
202
- side: a,
203
- setOpen: o
204
- }), (e, t) => z(e.$slots, "default");
205
- }
206
- }), Fe = { class: "w-full overflow-auto" };
207
- function q(t, n, r) {
208
- return D({
209
- name: t,
210
- props: { class: {
211
- type: String,
212
- default: void 0
213
- } },
214
- setup(t, { attrs: i, slots: a }) {
215
- let o = b(() => e(r, t.class));
216
- return () => O(n, {
217
- ...i,
218
- class: o.value
219
- }, a.default?.());
220
- }
221
- });
222
- }
223
- var Ie = q("UTableHeader", "thead", "[&_tr]:border-b border-border-base"), Le = q("UTableBody", "tbody", "[&_tr:last-child]:border-0"), Re = q("UTableRow", "tr", "border-b border-border-base transition-colors hover:bg-surface-2"), ze = q("UTableHead", "th", "h-10 px-4 text-left align-middle font-medium text-text-secondary [&:has([role=checkbox])]:pr-0"), Be = q("UTableCell", "td", "px-4 py-3 align-middle text-text-primary [&:has([role=checkbox])]:pr-0"), Ve = /* @__PURE__ */ D({
224
- name: "UTable",
225
- __name: "table",
226
- props: { class: { default: void 0 } },
227
- setup(t) {
228
- let n = t, r = b(() => e("w-full caption-bottom text-sm", n.class));
229
- return (e, t) => (F(), C("div", Fe, [w("table", { class: M(r.value) }, [z(e.$slots, "default")], 2)]));
230
- }
231
- }), He = { class: "font-semibold" }, Ue = ["onClick"], We = /* @__PURE__ */ D({
232
- name: "UToaster",
233
- __name: "toast",
234
- props: { class: { default: void 0 } },
235
- setup(t) {
236
- let n = t, r = {
237
- success: "bg-success-soft border-success/30 text-success-soft-fg",
238
- error: "bg-danger-soft border-danger/30 text-danger-soft-fg",
239
- info: "bg-info-soft border-info/30 text-info-soft-fg"
240
- }, i = {
241
- success: "成功",
242
- error: "错误",
243
- info: "提示"
244
- }, { items: a } = g(), o = b(() => e("fixed right-4 top-4 z-[9999] flex w-80 flex-col gap-2", n.class));
245
- return (t, n) => (F(), x(y, { to: "body" }, [H(a).length ? (F(), C("div", {
246
- key: 0,
247
- class: M(o.value),
248
- role: "region",
249
- "aria-label": "通知"
250
- }, [(F(!0), C(v, null, R(H(a), (t) => (F(), C("div", {
251
- key: t.id,
252
- class: M(H(e)("flex items-start justify-between gap-2 rounded-md border px-4 py-3 text-sm shadow-md", r[t.type])),
253
- role: "alert"
254
- }, [w("div", null, [w("span", He, V(i[t.type]) + ":", 1), T(" " + V(t.message), 1)]), w("button", {
255
- type: "button",
256
- class: "mt-0.5 shrink-0 opacity-60 transition-opacity hover:opacity-100",
257
- "aria-label": "关闭通知",
258
- onClick: (e) => H(_)(t.id)
259
- }, [E(H(ge), { size: 14 })], 8, Ue)], 2))), 128))], 2)) : S("", !0)]));
260
- }
261
- }), Ge = ["for"], Ke = { class: "relative inline-flex" }, qe = [
262
- "id",
263
- "checked",
264
- "disabled"
265
- ], Je = { class: "pt-px" }, Ye = {
266
- key: 1,
267
- class: "relative inline-flex"
268
- }, Xe = [
269
- "id",
270
- "checked",
271
- "disabled"
272
- ], Ze = "peer inline-flex shrink-0 items-center justify-center rounded-md border shadow-sm transition-colors peer-focus-visible:outline-none peer-focus-visible:ring-2 peer-focus-visible:ring-ring/35 peer-focus-visible:ring-offset-2 peer-focus-visible:ring-offset-surface-0 peer-disabled:cursor-not-allowed peer-disabled:opacity-50", Qe = /* @__PURE__ */ D({
273
- __name: "checkbox",
274
- props: {
275
- modelValue: {
276
- type: Boolean,
277
- default: !1
278
- },
279
- indeterminate: {
280
- type: Boolean,
281
- default: !1
282
- },
283
- size: { default: "default" },
284
- disabled: {
285
- type: Boolean,
286
- default: !1
287
- },
288
- label: {},
289
- id: {},
290
- class: {},
291
- labelClass: {}
292
- },
293
- emits: ["update:modelValue", "change"],
294
- setup(t, { emit: n }) {
295
- let r = t, i = n, a = L(null);
296
- G(() => r.indeterminate, (e) => {
297
- a.value && (a.value.indeterminate = e);
298
- }, { immediate: !0 });
299
- let o = {
300
- sm: "h-4 w-4",
301
- default: "h-[18px] w-[18px]",
302
- lg: "h-5 w-5"
303
- }, s = {
304
- unchecked: "border-border-strong bg-surface-1 text-transparent hover:border-primary/70 hover:bg-surface-2",
305
- active: "border-primary bg-primary text-primary-fg"
306
- }, c = b(() => e(Ze, o[r.size], r.indeterminate || r.modelValue ? s.active : s.unchecked, r.class)), l = b(() => r.size === "sm" ? 11 : r.size === "lg" ? 14 : 12), u = b(() => e("inline-flex min-h-5 cursor-pointer items-center gap-2.5 text-sm leading-5 text-text-primary select-none", r.disabled && "cursor-not-allowed opacity-60", r.labelClass));
307
- function d(e) {
308
- let t = e.target;
309
- i("update:modelValue", t.checked), i("change", t.checked);
310
- }
311
- return (e, n) => t.label === void 0 ? (F(), C("span", Ye, [w("input", {
312
- id: t.id,
313
- ref_key: "inputRef",
314
- ref: a,
315
- type: "checkbox",
316
- class: "peer sr-only",
317
- checked: t.modelValue,
318
- disabled: t.disabled,
319
- onChange: d
320
- }, null, 40, Xe), w("span", {
321
- "aria-hidden": "true",
322
- class: M(c.value)
323
- }, [t.indeterminate ? (F(), x(H(K), {
324
- key: 0,
325
- size: l.value
326
- }, null, 8, ["size"])) : t.modelValue ? (F(), x(H(oe), {
327
- key: 1,
328
- size: l.value
329
- }, null, 8, ["size"])) : S("", !0)], 2)])) : (F(), C("label", {
330
- key: 0,
331
- for: t.id,
332
- class: M(u.value)
333
- }, [w("span", Ke, [w("input", {
334
- id: t.id,
335
- ref_key: "inputRef",
336
- ref: a,
337
- type: "checkbox",
338
- class: "peer sr-only",
339
- checked: t.modelValue,
340
- disabled: t.disabled,
341
- onChange: d
342
- }, null, 40, qe), w("span", {
343
- "aria-hidden": "true",
344
- class: M(c.value)
345
- }, [t.indeterminate ? (F(), x(H(K), {
346
- key: 0,
347
- size: l.value
348
- }, null, 8, ["size"])) : t.modelValue ? (F(), x(H(oe), {
349
- key: 1,
350
- size: l.value
351
- }, null, 8, ["size"])) : S("", !0)], 2)]), w("span", Je, V(t.label), 1)], 10, Ge));
352
- }
353
- }), $e = Symbol("ug-radio-group-context"), et = ["for"], tt = { class: "relative inline-flex" }, nt = [
354
- "id",
355
- "value",
356
- "checked",
357
- "disabled",
358
- "name"
359
- ], rt = { class: "pt-px" }, it = {
360
- key: 1,
361
- class: "relative inline-flex"
362
- }, at = [
363
- "id",
364
- "value",
365
- "checked",
366
- "disabled",
367
- "name"
368
- ], ot = "relative inline-flex shrink-0 items-center justify-center rounded-full border shadow-sm transition-colors peer-focus-visible:outline-none peer-focus-visible:ring-2 peer-focus-visible:ring-ring/35 peer-focus-visible:ring-offset-2 peer-focus-visible:ring-offset-surface-0 peer-disabled:cursor-not-allowed peer-disabled:opacity-50", st = /* @__PURE__ */ D({
369
- name: "URadio",
370
- __name: "radio",
371
- props: {
372
- value: {},
373
- checked: {
374
- type: Boolean,
375
- default: !1
376
- },
377
- disabled: {
378
- type: Boolean,
379
- default: !1
380
- },
381
- size: { default: "default" },
382
- label: {},
383
- name: {},
384
- class: {}
385
- },
386
- emits: ["change"],
387
- setup(t, { emit: n }) {
388
- let r = t, i = n, a = k($e, null), o = U(), s = b(() => a ? a.value.value === r.value : r.checked), c = b(() => a && a.disabled.value || r.disabled), l = b(() => a ? a.name.value : r.name);
389
- function u() {
390
- c.value || (a ? a.onValueChange(r.value) : i("change", r.value));
391
- }
392
- let d = {
393
- sm: "h-4 w-4",
394
- default: "h-[18px] w-[18px]",
395
- lg: "h-5 w-5"
396
- }, f = {
397
- sm: "h-1.5 w-1.5",
398
- default: "h-2 w-2",
399
- lg: "h-2.5 w-2.5"
400
- }, p = b(() => e(ot, d[r.size], s.value ? "border-primary bg-surface-1" : "border-border-strong bg-surface-1 hover:border-primary/70 hover:bg-surface-2", c.value && "cursor-not-allowed opacity-50", r.class)), m = b(() => e("inline-flex min-h-5 cursor-pointer items-center gap-2.5 text-sm leading-5 text-text-primary select-none", c.value && "cursor-not-allowed opacity-60"));
401
- return (n, r) => t.label === void 0 ? (F(), C("span", it, [w("input", {
402
- id: H(o),
403
- type: "radio",
404
- class: "peer sr-only",
405
- value: t.value,
406
- checked: s.value,
407
- disabled: c.value,
408
- name: l.value,
409
- onChange: u
410
- }, null, 40, at), w("span", {
411
- "aria-hidden": "true",
412
- class: M(p.value)
413
- }, [s.value ? (F(), C("span", {
414
- key: 0,
415
- class: M(H(e)("rounded-full bg-primary", f[t.size]))
416
- }, null, 2)) : S("", !0)], 2)])) : (F(), C("label", {
417
- key: 0,
418
- for: H(o),
419
- class: M(m.value)
420
- }, [w("span", tt, [w("input", {
421
- id: H(o),
422
- type: "radio",
423
- class: "peer sr-only",
424
- value: t.value,
425
- checked: s.value,
426
- disabled: c.value,
427
- name: l.value,
428
- onChange: u
429
- }, null, 40, nt), w("span", {
430
- "aria-hidden": "true",
431
- class: M(p.value)
432
- }, [s.value ? (F(), C("span", {
433
- key: 0,
434
- class: M(H(e)("rounded-full bg-primary", f[t.size]))
435
- }, null, 2)) : S("", !0)], 2)]), w("span", rt, V(t.label), 1)], 10, et));
436
- }
437
- }), ct = /* @__PURE__ */ D({
438
- name: "URadioGroup",
439
- __name: "radio-group",
440
- props: {
441
- modelValue: {},
442
- defaultValue: {},
443
- disabled: {
444
- type: Boolean,
445
- default: !1
446
- },
447
- name: {},
448
- orientation: { default: "vertical" },
449
- class: {}
450
- },
451
- emits: ["update:modelValue", "change"],
452
- setup(t, { emit: n }) {
453
- let r = t, i = n, a = b(() => r.modelValue !== void 0), o = L(r.defaultValue), s = b(() => a.value ? r.modelValue : o.value);
454
- function c(e) {
455
- a.value || (o.value = e), i("update:modelValue", e), i("change", e);
456
- }
457
- I($e, {
458
- value: s,
459
- onValueChange: c,
460
- name: b(() => r.name),
461
- disabled: b(() => r.disabled)
462
- });
463
- let l = b(() => e("flex", r.orientation === "vertical" ? "flex-col gap-2.5" : "flex-row flex-wrap gap-x-5 gap-y-2.5", r.class));
464
- return (e, t) => (F(), C("div", {
465
- role: "radiogroup",
466
- class: M(l.value)
467
- }, [z(e.$slots, "default")], 2));
468
- }
469
- }), lt = {
470
- key: 0,
471
- class: "self-start text-xs font-semibold leading-none text-text-primary"
472
- }, ut = { class: "relative flex h-6 w-full items-center" }, dt = { class: "pointer-events-none absolute h-2 w-full overflow-hidden rounded-full bg-surface-3" }, ft = [
473
- "min",
474
- "max",
475
- "step",
476
- "value",
477
- "disabled"
478
- ], pt = /* @__PURE__ */ D({
479
- name: "USlider",
480
- __name: "slider",
481
- props: {
482
- modelValue: {},
483
- defaultValue: { default: 0 },
484
- min: { default: 0 },
485
- max: { default: 100 },
486
- step: { default: 1 },
487
- disabled: {
488
- type: Boolean,
489
- default: !1
490
- },
491
- showValue: {
492
- type: Boolean,
493
- default: !1
494
- },
495
- class: {}
496
- },
497
- emits: ["update:modelValue", "change"],
498
- setup(t, { emit: n }) {
499
- let r = t, i = n, a = b(() => r.modelValue !== void 0), o = L(r.defaultValue), s = b(() => a.value ? r.modelValue : o.value), c = b(() => {
500
- let e = r.max - r.min;
501
- return e === 0 ? 0 : (s.value - r.min) / e * 100;
502
- });
503
- function l(e) {
504
- let t = Number(e.target.value);
505
- a.value || (o.value = t), i("update:modelValue", t), i("change", t);
506
- }
507
- let u = b(() => e("flex flex-col gap-1.5", r.class));
508
- return (n, r) => (F(), C("div", { class: M(u.value) }, [t.showValue ? (F(), C("span", lt, V(s.value), 1)) : S("", !0), w("div", ut, [w("div", dt, [w("div", {
509
- class: "h-full rounded-full bg-primary transition-all",
510
- style: N({ width: `${c.value}%` })
511
- }, null, 4)]), w("input", {
512
- type: "range",
513
- min: t.min,
514
- max: t.max,
515
- step: t.step,
516
- value: s.value,
517
- disabled: t.disabled,
518
- class: M(H(e)("relative h-6 w-full cursor-pointer appearance-none bg-transparent", "[&::-webkit-slider-thumb]:h-[18px] [&::-webkit-slider-thumb]:w-[18px] [&::-webkit-slider-thumb]:appearance-none [&::-webkit-slider-thumb]:rounded-full [&::-webkit-slider-thumb]:border-2 [&::-webkit-slider-thumb]:border-primary [&::-webkit-slider-thumb]:bg-surface-1 [&::-webkit-slider-thumb]:shadow-md [&::-webkit-slider-thumb]:transition-transform [&::-webkit-slider-thumb]:hover:scale-110", "[&::-moz-range-thumb]:h-[18px] [&::-moz-range-thumb]:w-[18px] [&::-moz-range-thumb]:appearance-none [&::-moz-range-thumb]:rounded-full [&::-moz-range-thumb]:border-2 [&::-moz-range-thumb]:border-primary [&::-moz-range-thumb]:bg-surface-1 [&::-moz-range-thumb]:shadow-md", "[&::-webkit-slider-runnable-track]:bg-transparent", "[&::-moz-range-track]:bg-transparent", "focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring/30 focus-visible:ring-offset-2 focus-visible:ring-offset-surface-0", "disabled:cursor-not-allowed disabled:opacity-50")),
519
- onInput: l,
520
- onChange: l
521
- }, null, 42, ft)])], 2));
522
- }
523
- }), mt = ["disabled"], ht = [
524
- "value",
525
- "disabled",
526
- "placeholder",
527
- "min",
528
- "max",
529
- "step"
530
- ], gt = ["disabled"], _t = "inline-flex shrink-0 items-center justify-center bg-surface-2 text-text-secondary transition-colors hover:bg-surface-3 hover:text-text-primary disabled:pointer-events-none disabled:opacity-40", vt = /* @__PURE__ */ D({
531
- name: "UNumberInput",
532
- __name: "number-input",
533
- props: {
534
- modelValue: {},
535
- defaultValue: { default: 0 },
536
- min: {},
537
- max: {},
538
- step: { default: 1 },
539
- precision: { default: 0 },
540
- disabled: {
541
- type: Boolean,
542
- default: !1
543
- },
544
- placeholder: {},
545
- size: { default: "default" },
546
- class: {}
547
- },
548
- emits: ["update:modelValue", "change"],
549
- setup(t, { emit: n }) {
550
- let r = t, i = n, a = b(() => r.modelValue !== void 0), o = L(r.defaultValue), s = b(() => a.value ? r.modelValue : o.value);
551
- function c(e) {
552
- let t = e;
553
- return r.min !== void 0 && (t = Math.max(r.min, t)), r.max !== void 0 && (t = Math.min(r.max, t)), t;
554
- }
555
- function l(e) {
556
- let t = c(Number(e.toFixed(r.precision)));
557
- a.value || (o.value = t), i("update:modelValue", t), i("change", t);
558
- }
559
- function u() {
560
- r.disabled || l(s.value - r.step);
561
- }
562
- function d() {
563
- r.disabled || l(s.value + r.step);
564
- }
565
- function f(e) {
566
- let t = parseFloat(e.target.value);
567
- Number.isNaN(t) || l(t);
568
- }
569
- function p(e) {
570
- let t = parseFloat(e.target.value);
571
- Number.isNaN(t) || l(t);
572
- }
573
- let m = b(() => r.min !== void 0 && s.value <= r.min), h = b(() => r.max !== void 0 && s.value >= r.max), g = b(() => s.value.toFixed(r.precision)), _ = {
574
- sm: "h-8 text-xs",
575
- default: "h-9 text-sm",
576
- lg: "h-11 text-base"
577
- }, v = {
578
- sm: "h-8 w-7",
579
- default: "h-9 w-9",
580
- lg: "h-11 w-10"
581
- }, y = {
582
- sm: 12,
583
- default: 14,
584
- lg: 16
585
- }, x = b(() => e("inline-flex items-center overflow-hidden rounded-lg border border-border-strong bg-surface-1 shadow-sm transition-colors", "focus-within:border-primary focus-within:ring-2 focus-within:ring-ring/25", r.disabled && "pointer-events-none opacity-60", _[r.size], r.class)), S = b(() => e(_t, v[r.size]));
586
- return (n, r) => (F(), C("div", { class: M(x.value) }, [
587
- w("button", {
588
- type: "button",
589
- "aria-label": "减少数值",
590
- disabled: t.disabled || m.value,
591
- class: M(H(e)(S.value, "border-r border-border-base")),
592
- tabindex: "-1",
593
- onClick: u
594
- }, [E(H(K), { size: y[t.size] }, null, 8, ["size"])], 10, mt),
595
- w("input", {
596
- type: "number",
597
- value: g.value,
598
- disabled: t.disabled,
599
- placeholder: t.placeholder,
600
- min: t.min,
601
- max: t.max,
602
- step: t.step,
603
- class: "min-w-0 flex-1 bg-transparent px-2 text-center font-medium text-text-primary outline-none placeholder:text-text-tertiary [appearance:textfield] [&::-webkit-inner-spin-button]:appearance-none [&::-webkit-outer-spin-button]:appearance-none",
604
- onInput: f,
605
- onBlur: p
606
- }, null, 40, ht),
607
- w("button", {
608
- type: "button",
609
- "aria-label": "增加数值",
610
- disabled: t.disabled || h.value,
611
- class: M(H(e)(S.value, "border-l border-border-base")),
612
- tabindex: "-1",
613
- onClick: d
614
- }, [E(H(fe), { size: y[t.size] }, null, 8, ["size"])], 10, gt)
615
- ], 2));
616
- }
617
- }), yt = [
618
- "value",
619
- "disabled",
620
- "aria-label",
621
- "onInput",
622
- "onKeydown"
623
- ], bt = /* @__PURE__ */ D({
624
- name: "UOTPInput",
625
- __name: "otp-input",
626
- props: /* @__PURE__ */ A({
627
- length: { default: 6 },
628
- disabled: {
629
- type: Boolean,
630
- default: !1
631
- },
632
- class: { default: void 0 }
633
- }, {
634
- modelValue: { default: "" },
635
- modelModifiers: {}
636
- }),
637
- emits: /* @__PURE__ */ A(["complete"], ["update:modelValue"]),
638
- setup(t, { emit: n }) {
639
- let r = t, i = n, a = W(t, "modelValue"), o = L([]), s = b(() => {
640
- let e = a.value.split("").slice(0, r.length);
641
- for (; e.length < r.length;) e.push("");
642
- return e;
643
- });
644
- function c(e) {
645
- j(() => {
646
- let t = o.value[e];
647
- t && (t.focus(), t.setSelectionRange(t.value.length, t.value.length));
648
- });
649
- }
650
- function l(e, t) {
651
- let n = s.value.slice();
652
- n[e] = t;
653
- let o = n.join("");
654
- a.value = o, o.replace(/\s/g, "").length === r.length && !o.includes("") && i("complete", o);
655
- }
656
- function u(e, t) {
657
- let n = t.target, i = n.value.replace(/\D/g, "").slice(-1);
658
- n.value = i, l(e, i), i && e < r.length - 1 && c(e + 1);
659
- }
660
- function d(e, t) {
661
- t.key === "ArrowLeft" ? (t.preventDefault(), e > 0 && c(e - 1)) : t.key === "ArrowRight" ? (t.preventDefault(), e < r.length - 1 && c(e + 1)) : t.key === "Backspace" && (t.preventDefault(), s.value[e] ?? "" ? l(e, "") : e > 0 && (l(e - 1, ""), c(e - 1)));
662
- }
663
- function f(e) {
664
- e.preventDefault();
665
- let t = (e.clipboardData?.getData("text") ?? "").replace(/\D/g, "").slice(0, r.length);
666
- if (!t) return;
667
- let n = t.padEnd(r.length, "").split("").slice(0, r.length).join("");
668
- a.value = n, c(Math.min(t.length, r.length - 1)), t.length === r.length && i("complete", n);
669
- }
670
- function p(e) {
671
- e.target.select();
672
- }
673
- let m = b(() => e("flex items-center gap-2", r.class));
674
- function h(t) {
675
- return e("h-10 w-10 rounded-md border text-center text-sm font-medium text-text-primary transition-colors", "outline-none focus:border-primary focus:ring-2 focus:ring-ring/20", "disabled:cursor-not-allowed disabled:opacity-50", t ? "border-border-strong" : "border-border-base");
676
- }
677
- return (e, n) => (F(), C("div", {
678
- class: M(m.value),
679
- role: "group",
680
- "aria-label": "验证码输入"
681
- }, [(F(!0), C(v, null, R(s.value, (e, n) => (F(), C("input", {
682
- key: n,
683
- ref_for: !0,
684
- ref: (e) => {
685
- o.value[n] = e;
686
- },
687
- type: "text",
688
- inputmode: "numeric",
689
- pattern: "[0-9]",
690
- maxlength: 1,
691
- value: e,
692
- disabled: t.disabled,
693
- "aria-label": `验证码第 ${n + 1} 位`,
694
- class: M(h(e)),
695
- onInput: (e) => u(n, e),
696
- onKeydown: (e) => d(n, e),
697
- onPaste: f,
698
- onClick: p
699
- }, null, 42, yt))), 128))], 2));
700
- }
701
- }), xt = Symbol("ug-form-field-context");
702
- //#endregion
703
- //#region src/components/form.vue?vue&type=script&setup=true&lang.ts
704
- function J() {
705
- let e = k(xt);
706
- if (!e) throw Error("FormField 子组件必须在 <UFormField> 内使用");
707
- return e;
708
- }
709
- var St = D({
710
- name: "UFormField",
711
- props: {
712
- name: {
713
- type: String,
714
- required: !0
715
- },
716
- error: {
717
- type: String,
718
- default: void 0
719
- },
720
- class: {
721
- type: String,
722
- default: void 0
723
- }
724
- },
725
- setup(t, { slots: n }) {
726
- let r = U();
727
- return I(xt, {
728
- name: b(() => t.name),
729
- error: b(() => t.error),
730
- id: b(() => `form-field-${r}`)
731
- }), () => O("div", { class: e(t.class) }, n.default?.());
732
- }
733
- }), Ct = D({
734
- name: "UFormItem",
735
- props: { class: {
736
- type: String,
737
- default: void 0
738
- } },
739
- setup(t, { slots: n }) {
740
- let r = b(() => e("flex flex-col gap-1.5", t.class));
741
- return () => O("div", { class: r.value }, n.default?.());
742
- }
743
- }), wt = D({
744
- name: "UFormLabel",
745
- props: {
746
- required: {
747
- type: Boolean,
748
- default: !1
749
- },
750
- for: {
751
- type: String,
752
- default: void 0
753
- },
754
- class: {
755
- type: String,
756
- default: void 0
757
- }
758
- },
759
- setup(t, { slots: n }) {
760
- let r = J(), i = b(() => e("leading-none text-sm font-medium text-text-primary", t.class)), a = b(() => t.for ?? r.id.value);
761
- return () => O("label", {
762
- for: a.value,
763
- class: i.value
764
- }, [n.default?.(), t.required ? O("span", {
765
- class: "ml-0.5 text-danger",
766
- "aria-hidden": "true"
767
- }, "*") : null]);
768
- }
769
- }), Tt = D({
770
- name: "UFormControl",
771
- props: { class: {
772
- type: String,
773
- default: void 0
774
- } },
775
- setup(t, { slots: n }) {
776
- let r = J(), i = b(() => e(t.class)), a = b(() => `${r.id.value}-description`), o = b(() => `${r.id.value}-message`), s = b(() => r.error.value ? `${a.value} ${o.value}` : a.value);
777
- return () => O("div", {
778
- id: r.id.value,
779
- class: i.value || void 0,
780
- "aria-describedby": s.value,
781
- "aria-invalid": r.error.value ? "true" : void 0
782
- }, n.default?.());
783
- }
784
- }), Et = D({
785
- name: "UFormDescription",
786
- props: { class: {
787
- type: String,
788
- default: void 0
789
- } },
790
- setup(t, { slots: n }) {
791
- let r = J(), i = b(() => e("text-xs text-text-secondary", t.class)), a = b(() => `${r.id.value}-description`);
792
- return () => O("p", {
793
- id: a.value,
794
- class: i.value
795
- }, n.default?.());
796
- }
797
- }), Dt = D({
798
- name: "UFormMessage",
799
- props: { class: {
800
- type: String,
801
- default: void 0
802
- } },
803
- setup(t, { slots: n }) {
804
- let r = J(), i = b(() => e("text-xs text-danger-soft-fg", t.class)), a = b(() => `${r.id.value}-message`);
805
- return () => {
806
- let e = r.error.value, t = n.default?.(), o = t && t.length > 0;
807
- return !e && !o ? null : O("p", {
808
- id: a.value,
809
- class: i.value,
810
- role: "alert"
811
- }, e ?? t);
812
- };
813
- }
814
- }), Ot = /* @__PURE__ */ D({
815
- name: "UForm",
816
- __name: "form",
817
- props: { class: { default: void 0 } },
818
- emits: ["submit"],
819
- setup(t, { emit: n }) {
820
- let r = t, i = n, a = b(() => e(r.class));
821
- function o(e) {
822
- i("submit", e);
823
- }
824
- return (e, t) => (F(), C("form", {
825
- class: M(a.value),
826
- onSubmit: re(o, ["prevent"])
827
- }, [z(e.$slots, "default")], 34));
828
- }
829
- }), kt = Symbol("ug-tabs-context");
830
- //#endregion
831
- //#region src/components/tabs.vue?vue&type=script&setup=true&lang.ts
832
- function At() {
833
- let e = k(kt);
834
- if (!e) throw Error("Tabs 子组件必须在 <UTabs> 内使用");
835
- return e;
836
- }
837
- var jt = D({
838
- name: "UTabsList",
839
- props: { class: {
840
- type: String,
841
- default: void 0
842
- } },
843
- setup(t, { slots: n }) {
844
- let r = b(() => e("inline-flex w-full items-center gap-0 border-b border-border-base", t.class));
845
- return () => O("div", {
846
- role: "tablist",
847
- class: r.value
848
- }, n.default?.());
849
- }
850
- }), Mt = D({
851
- name: "UTabsTrigger",
852
- props: {
853
- value: {
854
- type: String,
855
- required: !0
856
- },
857
- disabled: {
858
- type: Boolean,
859
- default: !1
860
- },
861
- class: {
862
- type: String,
863
- default: void 0
864
- }
865
- },
866
- emits: { click: (e) => !0 },
867
- setup(t, { emit: n, slots: r }) {
868
- let i = At(), a = b(() => i.modelValue.value === t.value), o = b(() => e("relative px-4 py-2 text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring/30 focus-visible:ring-offset-1 disabled:pointer-events-none disabled:opacity-50", "after:absolute after:bottom-0 after:left-0 after:h-0.5 after:w-full after:transition-colors", a.value ? "text-text-primary after:bg-primary" : "text-text-secondary hover:text-text-primary after:bg-transparent", t.class));
869
- function s(e) {
870
- t.disabled || (i.setValue(t.value), n("click", e));
871
- }
872
- return () => O("button", {
873
- type: "button",
874
- role: "tab",
875
- "aria-selected": a.value,
876
- tabindex: a.value ? 0 : -1,
877
- disabled: t.disabled,
878
- class: o.value,
879
- onClick: s
880
- }, r.default?.());
881
- }
882
- }), Nt = D({
883
- name: "UTabsContent",
884
- props: {
885
- value: {
886
- type: String,
887
- required: !0
888
- },
889
- class: {
890
- type: String,
891
- default: void 0
892
- }
893
- },
894
- setup(t, { slots: n }) {
895
- let r = At(), i = b(() => r.modelValue.value === t.value), a = b(() => e("mt-4 focus-visible:outline-none", t.class));
896
- return () => i.value ? O("div", {
897
- role: "tabpanel",
898
- tabindex: 0,
899
- class: a.value
900
- }, n.default?.()) : null;
901
- }
902
- }), Pt = /* @__PURE__ */ D({
903
- name: "UTabs",
904
- __name: "tabs",
905
- props: /* @__PURE__ */ A({ class: { default: void 0 } }, {
906
- modelValue: { default: "" },
907
- modelModifiers: {}
908
- }),
909
- emits: /* @__PURE__ */ A(["valueChange"], ["update:modelValue"]),
910
- setup(t, { emit: n }) {
911
- let r = t, i = W(t, "modelValue"), a = n, o = b(() => e("w-full", r.class));
912
- function s(e) {
913
- i.value = e, a("valueChange", e);
914
- }
915
- return I(kt, {
916
- modelValue: i,
917
- setValue: s
918
- }), (e, t) => (F(), C("div", { class: M(o.value) }, [z(e.$slots, "default")], 2));
919
- }
920
- }), Ft = Symbol("ug-accordion-context"), It = Symbol("ug-accordion-item-context");
921
- //#endregion
922
- //#region src/components/accordion.vue?vue&type=script&setup=true&lang.ts
923
- function Lt() {
924
- let e = k(Ft);
925
- if (!e) throw Error("Accordion 子组件必须在 <UAccordion> 内使用");
926
- return e;
927
- }
928
- function Rt() {
929
- let e = k(It);
930
- if (!e) throw Error("AccordionTrigger/AccordionContent 必须在 <UAccordionItem> 内使用");
931
- return e;
932
- }
933
- var zt = D({
934
- name: "UAccordionItem",
935
- props: {
936
- value: {
937
- type: String,
938
- required: !0
939
- },
940
- class: {
941
- type: String,
942
- default: void 0
943
- }
944
- },
945
- setup(t, { slots: n }) {
946
- let r = Lt(), i = b(() => r.type === "single" ? r.value.value === t.value : r.value.value.includes(t.value));
947
- I(It, {
948
- itemValue: t.value,
949
- isOpen: i
950
- });
951
- let a = b(() => e("", t.class));
952
- return () => O("div", { class: a.value }, n.default?.());
953
- }
954
- }), Bt = D({
955
- name: "UAccordionTrigger",
956
- props: { class: {
957
- type: String,
958
- default: void 0
959
- } },
960
- emits: { click: (e) => !0 },
961
- setup(t, { emit: n, slots: r }) {
962
- let i = Lt(), a = Rt(), o = b(() => e("flex w-full items-center justify-between px-4 py-3 text-left text-sm font-medium text-text-primary transition-colors hover:bg-surface-2 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring/30 focus-visible:ring-inset", t.class)), s = b(() => e("shrink-0 text-text-secondary transition-transform duration-200", a.isOpen.value ? "rotate-180" : ""));
963
- function c(e) {
964
- i.onValueChange(a.itemValue), n("click", e);
965
- }
966
- return () => O("button", {
967
- type: "button",
968
- "aria-expanded": a.isOpen.value,
969
- class: o.value,
970
- onClick: c
971
- }, [...r.default?.() ?? [], O(ce, {
972
- size: 16,
973
- class: s.value
974
- })]);
975
- }
976
- }), Vt = D({
977
- name: "UAccordionContent",
978
- props: { class: {
979
- type: String,
980
- default: void 0
981
- } },
982
- setup(t, { slots: n }) {
983
- let r = Rt(), i = b(() => e("px-4 pb-4 pt-1 text-sm text-text-secondary", t.class));
984
- return () => r.isOpen.value ? O("div", { class: i.value }, n.default?.()) : null;
985
- }
986
- }), Ht = /* @__PURE__ */ D({
987
- name: "UAccordion",
988
- __name: "accordion",
989
- props: {
990
- type: { default: "single" },
991
- modelValue: { default: void 0 },
992
- defaultValue: { default: void 0 },
993
- collapsible: {
994
- type: Boolean,
995
- default: !1
996
- },
997
- class: { default: void 0 }
998
- },
999
- emits: ["update:modelValue"],
1000
- setup(t, { emit: n }) {
1001
- let r = t, i = n, a = L(r.defaultValue === void 0 ? r.type === "multiple" ? [] : "" : r.defaultValue), o = b(() => r.modelValue !== void 0), s = b(() => o.value ? r.modelValue : a.value), c = b(() => e("w-full divide-y divide-border-base rounded-md border border-border-base", r.class));
1002
- function l(e) {
1003
- if (r.type === "single") {
1004
- let t = s.value === e && r.collapsible ? "" : e;
1005
- o.value || (a.value = t), i("update:modelValue", t);
1006
- } else {
1007
- let t = s.value, n = t.includes(e) ? t.filter((t) => t !== e) : [...t, e];
1008
- o.value || (a.value = n), i("update:modelValue", n);
1009
- }
1010
- }
1011
- return I(Ft, {
1012
- type: r.type,
1013
- value: s,
1014
- onValueChange: l,
1015
- collapsible: r.collapsible
1016
- }), (e, t) => (F(), C("div", { class: M(c.value) }, [z(e.$slots, "default")], 2));
1017
- }
1018
- }), Ut = { key: 1 }, Wt = /* @__PURE__ */ D({
1019
- __name: "steps",
1020
- props: {
1021
- current: {},
1022
- items: {},
1023
- direction: { default: "horizontal" },
1024
- status: { default: "process" },
1025
- class: {}
1026
- },
1027
- setup(t) {
1028
- let n = t, r = {
1029
- horizontal: "flex items-start",
1030
- vertical: "flex flex-col gap-1"
1031
- }, i = b(() => e(r[n.direction], n.class)), a = b(() => n.direction === "horizontal");
1032
- function o(e) {
1033
- return e < n.current || e === n.current && n.status === "finish";
1034
- }
1035
- function s(e) {
1036
- return e === n.current && n.status !== "finish";
1037
- }
1038
- function c(e) {
1039
- return e === n.current && n.status === "error";
1040
- }
1041
- function l(e) {
1042
- return o(e) ? "border-primary bg-primary text-primary-fg shadow-primary/20" : c(e) ? "border-danger bg-danger-soft text-danger-soft-fg shadow-danger/10" : s(e) ? "border-primary bg-primary-soft text-primary-soft-fg shadow-primary/10" : "border-border-strong bg-surface-1 text-text-tertiary";
1043
- }
1044
- function u(e) {
1045
- return c(e) ? "text-danger" : s(e) ? "text-primary" : o(e) ? "text-text-primary" : "text-text-tertiary";
1046
- }
1047
- function d(e) {
1048
- return o(e) ? "bg-primary" : "bg-border-strong";
1049
- }
1050
- return (n, r) => (F(), C("div", { class: M(i.value) }, [(F(!0), C(v, null, R(t.items, (n, r) => (F(), C("div", {
1051
- key: r,
1052
- class: M(H(e)(a.value ? "flex flex-1 items-start" : "flex items-start"))
1053
- }, [
1054
- w("div", { class: M(H(e)("flex", a.value ? "flex-col items-center" : "items-start")) }, [w("div", { class: M(H(e)("flex h-9 w-9 shrink-0 items-center justify-center rounded-full border-2 text-sm font-semibold shadow-sm transition-colors", l(r))) }, [o(r) ? (F(), x(H(oe), {
1055
- key: 0,
1056
- size: 16,
1057
- "stroke-width": 2.5
1058
- })) : (F(), C("span", Ut, V(r + 1), 1))], 2), !a.value && r < t.items.length - 1 ? (F(), C("div", {
1059
- key: 0,
1060
- class: M(H(e)("ml-[17px] mt-1 w-0.5 flex-1 self-stretch rounded-full", d(r))),
1061
- style: { "min-height": "26px" }
1062
- }, null, 2)) : S("", !0)], 2),
1063
- w("div", { class: M(H(e)(a.value ? "mt-2 text-center" : "ml-3.5", !a.value && r < t.items.length - 1 ? "pb-5" : "")) }, [w("p", { class: M(H(e)("text-sm font-semibold leading-5", u(r))) }, V(n.title), 3), n.description ? (F(), C("p", {
1064
- key: 0,
1065
- class: M(H(e)("mt-0.5 text-xs leading-5", c(r) ? "text-danger" : "text-text-secondary"))
1066
- }, V(n.description), 3)) : S("", !0)], 2),
1067
- a.value && r < t.items.length - 1 ? (F(), C("div", {
1068
- key: 0,
1069
- class: M(H(e)("mx-2 mt-4 h-0.5 flex-1", d(r)))
1070
- }, null, 2)) : S("", !0)
1071
- ], 2))), 128))], 2));
1072
- }
1073
- }), Gt = Symbol("ug-dropdown-context");
1074
- //#endregion
1075
- //#region src/components/dropdown.vue?vue&type=script&setup=true&lang.ts
1076
- function Y() {
1077
- let e = k(Gt);
1078
- if (!e) throw Error("Dropdown 子组件必须在 <UDropdown> 内使用");
1079
- return e;
1080
- }
1081
- function X() {
1082
- return typeof window < "u" && typeof document < "u";
1083
- }
1084
- var Kt = D({
1085
- name: "UDropdownTrigger",
1086
- props: { class: {
1087
- type: String,
1088
- default: void 0
1089
- } },
1090
- emits: { click: (e) => !0 },
1091
- setup(t, { emit: n, slots: r }) {
1092
- let i = Y(), a = b(() => e("inline-flex cursor-pointer", t.class));
1093
- function o(e) {
1094
- i.triggerRef.value = e;
1095
- }
1096
- function s(e) {
1097
- i.toggleOpen(), n("click", e);
1098
- }
1099
- return () => O("span", {
1100
- class: a.value,
1101
- onClick: s,
1102
- onVnodeMounted(e) {
1103
- o(e.el);
1104
- },
1105
- onVnodeUpdated(e) {
1106
- o(e.el);
1107
- }
1108
- }, r.default?.());
1109
- }
1110
- }), qt = D({
1111
- name: "UDropdownContent",
1112
- props: {
1113
- align: {
1114
- type: String,
1115
- default: "start"
1116
- },
1117
- class: {
1118
- type: String,
1119
- default: void 0
1120
- }
1121
- },
1122
- setup(t, { slots: n }) {
1123
- let r = Y(), i = L(null), a = L({
1124
- top: 0,
1125
- left: 0
1126
- }), o = b(() => e("absolute z-50 min-w-44 overflow-hidden rounded-lg border border-border-base bg-surface-1 p-1 text-text-primary shadow-xl", t.class));
1127
- function s() {
1128
- if (!r.triggerRef.value || !X()) return;
1129
- let e = r.triggerRef.value.getBoundingClientRect(), n = i.value?.offsetWidth ?? 0;
1130
- a.value = {
1131
- top: e.bottom + window.scrollY + 4,
1132
- left: t.align === "end" ? e.right + window.scrollX - n : e.left + window.scrollX
1133
- };
1134
- }
1135
- function c(e) {
1136
- let t = e.target;
1137
- i.value?.contains(t) || r.triggerRef.value?.contains(t) || r.setOpen(!1);
1138
- }
1139
- function l() {
1140
- X() && (window.addEventListener("resize", s), window.addEventListener("scroll", s, !0), document.addEventListener("mousedown", c));
1141
- }
1142
- function u() {
1143
- X() && (window.removeEventListener("resize", s), window.removeEventListener("scroll", s, !0), document.removeEventListener("mousedown", c));
1144
- }
1145
- return G(() => r.open.value, async (e) => {
1146
- u(), !(!e || !X()) && (await j(), s(), l());
1147
- }, { immediate: !0 }), P(() => {
1148
- u();
1149
- }), () => r.open.value ? O(y, { to: "body" }, [O("div", {
1150
- ref: i,
1151
- class: o.value,
1152
- style: {
1153
- top: `${a.value.top}px`,
1154
- left: `${a.value.left}px`
1155
- }
1156
- }, n.default?.())]) : null;
1157
- }
1158
- }), Jt = D({
1159
- name: "UDropdownItem",
1160
- props: {
1161
- destructive: {
1162
- type: Boolean,
1163
- default: !1
1164
- },
1165
- disabled: {
1166
- type: Boolean,
1167
- default: !1
1168
- },
1169
- class: {
1170
- type: String,
1171
- default: void 0
1172
- }
1173
- },
1174
- emits: { click: (e) => !0 },
1175
- setup(t, { emit: n, slots: r }) {
1176
- let i = Y(), a = b(() => e("flex min-h-8 w-full items-center gap-2 rounded-md px-2.5 py-2 text-left text-sm leading-none transition-colors focus-visible:outline-none disabled:pointer-events-none disabled:opacity-50", t.destructive ? "text-danger hover:bg-danger-soft focus-visible:bg-danger-soft" : "text-text-primary hover:bg-surface-2 focus-visible:bg-surface-2", t.class));
1177
- function o(e) {
1178
- t.disabled || (i.setOpen(!1), n("click", e));
1179
- }
1180
- return () => O("button", {
1181
- type: "button",
1182
- disabled: t.disabled,
1183
- class: a.value,
1184
- onClick: o
1185
- }, r.default?.());
1186
- }
1187
- }), Yt = D({
1188
- name: "UDropdownSeparator",
1189
- props: { class: {
1190
- type: String,
1191
- default: void 0
1192
- } },
1193
- setup(t, { attrs: n }) {
1194
- let r = b(() => e("-mx-1 my-1 h-px bg-border-base", t.class));
1195
- return () => O("div", {
1196
- ...n,
1197
- class: r.value
1198
- });
1199
- }
1200
- }), Xt = /* @__PURE__ */ D({
1201
- name: "UDropdown",
1202
- __name: "dropdown",
1203
- props: /* @__PURE__ */ A({ class: { default: void 0 } }, {
1204
- open: {
1205
- type: Boolean,
1206
- default: !1
1207
- },
1208
- openModifiers: {}
1209
- }),
1210
- emits: /* @__PURE__ */ A(["openChange"], ["update:open"]),
1211
- setup(t, { emit: n }) {
1212
- let r = t, i = W(t, "open"), a = n, o = L(null), s = b(() => e("relative inline-block", r.class));
1213
- function c(e) {
1214
- i.value = e, a("openChange", e);
1215
- }
1216
- function l() {
1217
- c(!i.value);
1218
- }
1219
- return I(Gt, {
1220
- open: i,
1221
- triggerRef: o,
1222
- setOpen: c,
1223
- toggleOpen: l
1224
- }), (e, t) => (F(), C("div", { class: M(s.value) }, [z(e.$slots, "default")], 2));
1225
- }
1226
- }), Zt = Symbol("ug-popover-context");
1227
- //#endregion
1228
- //#region src/components/popover.vue?vue&type=script&setup=true&lang.ts
1229
- function Qt() {
1230
- let e = k(Zt);
1231
- if (!e) throw Error("Popover 子组件必须在 <UPopover> 内使用");
1232
- return e;
1233
- }
1234
- function Z() {
1235
- return typeof window < "u" && typeof document < "u";
1236
- }
1237
- function $t(e, t, n, r, i) {
1238
- let a = t.offsetWidth, o = t.offsetHeight, s = 0, c = 0;
1239
- return n === "left" ? (s = e.top + window.scrollY + e.height / 2 - o / 2, c = e.left + window.scrollX - a - i, {
1240
- top: s,
1241
- left: c
1242
- }) : n === "right" ? (s = e.top + window.scrollY + e.height / 2 - o / 2, c = e.right + window.scrollX + i, {
1243
- top: s,
1244
- left: c
1245
- }) : (s = n === "top" ? e.top + window.scrollY - o - i : e.bottom + window.scrollY + i, c = r === "start" ? e.left + window.scrollX : r === "end" ? e.right + window.scrollX - a : e.left + window.scrollX + e.width / 2 - a / 2, {
1246
- top: s,
1247
- left: c
1248
- });
1249
- }
1250
- var en = D({
1251
- name: "UPopoverTrigger",
1252
- props: { class: {
1253
- type: String,
1254
- default: void 0
1255
- } },
1256
- emits: { click: (e) => !0 },
1257
- setup(t, { emit: n, slots: r }) {
1258
- let i = Qt(), a = b(() => e("inline-flex", t.class));
1259
- function o(e) {
1260
- i.triggerRef.value = e;
1261
- }
1262
- function s(e) {
1263
- i.toggleOpen(), n("click", e);
1264
- }
1265
- return () => O("span", {
1266
- class: a.value,
1267
- onClick: s,
1268
- onVnodeMounted(e) {
1269
- o(e.el);
1270
- },
1271
- onVnodeUpdated(e) {
1272
- o(e.el);
1273
- }
1274
- }, r.default?.());
1275
- }
1276
- }), tn = D({
1277
- name: "UPopoverContent",
1278
- props: {
1279
- side: {
1280
- type: String,
1281
- default: "bottom"
1282
- },
1283
- align: {
1284
- type: String,
1285
- default: "center"
1286
- },
1287
- sideOffset: {
1288
- type: Number,
1289
- default: 4
1290
- },
1291
- class: {
1292
- type: String,
1293
- default: void 0
1294
- }
1295
- },
1296
- setup(t, { slots: n }) {
1297
- let r = Qt(), i = L(null), a = L({
1298
- top: 0,
1299
- left: 0
1300
- }), o = b(() => e("absolute z-50 min-w-40 rounded-md border border-border-base bg-surface-1 p-3 shadow-lg", t.class));
1301
- function s() {
1302
- !r.triggerRef.value || !i.value || !Z() || (a.value = $t(r.triggerRef.value.getBoundingClientRect(), i.value, t.side, t.align, t.sideOffset));
1303
- }
1304
- function c(e) {
1305
- let t = e.target;
1306
- i.value?.contains(t) || r.triggerRef.value?.contains(t) || r.setOpen(!1);
1307
- }
1308
- function l() {
1309
- Z() && (window.addEventListener("resize", s), window.addEventListener("scroll", s, !0), document.addEventListener("mousedown", c));
1310
- }
1311
- function u() {
1312
- Z() && (window.removeEventListener("resize", s), window.removeEventListener("scroll", s, !0), document.removeEventListener("mousedown", c));
1313
- }
1314
- return G(() => r.open.value, async (e) => {
1315
- u(), !(!e || !Z()) && (await j(), s(), l());
1316
- }, { immediate: !0 }), P(() => {
1317
- u();
1318
- }), () => r.open.value ? O(y, { to: "body" }, [O("div", {
1319
- ref: i,
1320
- class: o.value,
1321
- style: {
1322
- top: `${a.value.top}px`,
1323
- left: `${a.value.left}px`
1324
- }
1325
- }, n.default?.())]) : null;
1326
- }
1327
- }), nn = /* @__PURE__ */ D({
1328
- name: "UPopover",
1329
- __name: "popover",
1330
- props: /* @__PURE__ */ A({ class: { default: void 0 } }, {
1331
- open: {
1332
- type: Boolean,
1333
- default: !1
1334
- },
1335
- openModifiers: {}
1336
- }),
1337
- emits: /* @__PURE__ */ A(["openChange"], ["update:open"]),
1338
- setup(e, { emit: t }) {
1339
- let n = t, r = W(e, "open"), i = L(null);
1340
- function a(e) {
1341
- r.value = e, n("openChange", e);
1342
- }
1343
- function o() {
1344
- a(!r.value);
1345
- }
1346
- return I(Zt, {
1347
- open: r,
1348
- triggerRef: i,
1349
- setOpen: a,
1350
- toggleOpen: o
1351
- }), (e, t) => z(e.$slots, "default");
1352
- }
1353
- }), rn = Symbol("ug-context-menu-context");
1354
- //#endregion
1355
- //#region src/components/context-menu.vue?vue&type=script&setup=true&lang.ts
1356
- function Q() {
1357
- let e = k(rn);
1358
- if (!e) throw Error("ContextMenu 子组件必须在 <UContextMenu> 内使用");
1359
- return e;
1360
- }
1361
- function an() {
1362
- return typeof document < "u";
1363
- }
1364
- var on = D({
1365
- name: "UContextMenuTrigger",
1366
- props: { class: {
1367
- type: String,
1368
- default: void 0
1369
- } },
1370
- setup(t, { slots: n }) {
1371
- let r = Q(), i = b(() => e(t.class));
1372
- function a(e) {
1373
- e.preventDefault(), r.openAt({
1374
- x: e.clientX,
1375
- y: e.clientY
1376
- });
1377
- }
1378
- return () => O("div", {
1379
- class: i.value || void 0,
1380
- onContextmenu: a
1381
- }, n.default?.());
1382
- }
1383
- }), sn = D({
1384
- name: "UContextMenuContent",
1385
- props: { class: {
1386
- type: String,
1387
- default: void 0
1388
- } },
1389
- setup(t, { slots: n }) {
1390
- let r = Q(), i = L(null), a = b(() => e("fixed z-50 min-w-40 rounded-md border border-border-base bg-surface-1 py-1 shadow-lg", t.class));
1391
- function o(e) {
1392
- i.value && !i.value.contains(e.target) && r.setOpen(!1);
1393
- }
1394
- function s(e) {
1395
- e.key === "Escape" && r.setOpen(!1);
1396
- }
1397
- function c() {
1398
- an() && (document.addEventListener("mousedown", o), document.addEventListener("keydown", s));
1399
- }
1400
- function l() {
1401
- an() && (document.removeEventListener("mousedown", o), document.removeEventListener("keydown", s));
1402
- }
1403
- return G(() => r.open.value, (e) => {
1404
- l(), e && an() && c();
1405
- }, { immediate: !0 }), P(() => {
1406
- l();
1407
- }), () => r.open.value ? O(y, { to: "body" }, [O("div", {
1408
- ref: i,
1409
- class: a.value,
1410
- style: {
1411
- top: `${r.position.value.y}px`,
1412
- left: `${r.position.value.x}px`
1413
- }
1414
- }, n.default?.())]) : null;
1415
- }
1416
- }), cn = D({
1417
- name: "UContextMenuItem",
1418
- props: {
1419
- destructive: {
1420
- type: Boolean,
1421
- default: !1
1422
- },
1423
- disabled: {
1424
- type: Boolean,
1425
- default: !1
1426
- },
1427
- class: {
1428
- type: String,
1429
- default: void 0
1430
- }
1431
- },
1432
- emits: { click: (e) => !0 },
1433
- setup(t, { emit: n, slots: r }) {
1434
- let i = Q(), a = b(() => e("w-full px-3 py-1.5 text-left text-sm transition-colors focus-visible:bg-surface-3 focus-visible:outline-none disabled:pointer-events-none disabled:opacity-50", t.destructive ? "text-danger hover:bg-danger-soft/10" : "text-text-primary hover:bg-surface-3", t.class));
1435
- function o(e) {
1436
- t.disabled || (i.setOpen(!1), n("click", e));
1437
- }
1438
- return () => O("button", {
1439
- type: "button",
1440
- disabled: t.disabled,
1441
- class: a.value,
1442
- onClick: o
1443
- }, r.default?.());
1444
- }
1445
- }), ln = D({
1446
- name: "UContextMenuSeparator",
1447
- props: { class: {
1448
- type: String,
1449
- default: void 0
1450
- } },
1451
- setup(t) {
1452
- let n = b(() => e("my-1 h-px bg-border-base", t.class));
1453
- return () => O("div", { class: n.value });
1454
- }
1455
- }), un = /* @__PURE__ */ D({
1456
- name: "UContextMenu",
1457
- __name: "context-menu",
1458
- props: { class: { default: void 0 } },
1459
- setup(t) {
1460
- let n = t, r = L(!1), i = L({
1461
- x: 0,
1462
- y: 0
1463
- }), a = b(() => e("relative", n.class));
1464
- function o(e) {
1465
- r.value = e;
1466
- }
1467
- function s(e) {
1468
- i.value = e, r.value = !0;
1469
- }
1470
- return I(rn, {
1471
- open: r,
1472
- position: i,
1473
- setOpen: o,
1474
- openAt: s
1475
- }), (e, t) => (F(), C("div", { class: M(a.value) }, [z(e.$slots, "default")], 2));
1476
- }
1477
- }), dn = Symbol("ug-navigation-menu-context"), fn = Symbol("ug-navigation-menu-item-context");
1478
- //#endregion
1479
- //#region src/components/navigation-menu.vue?vue&type=script&setup=true&lang.ts
1480
- function pn() {
1481
- let e = k(dn);
1482
- if (!e) throw Error("NavigationMenu 子组件必须在 <UNavigationMenu> 内使用");
1483
- return e;
1484
- }
1485
- function mn() {
1486
- let e = k(fn);
1487
- if (!e) throw Error("UNavigationMenuTrigger/UNavigationMenuContent 必须在 <UNavigationMenuItem> 内使用");
1488
- return e;
1489
- }
1490
- var hn = 0, gn = D({
1491
- name: "UNavigationMenuItem",
1492
- props: { class: {
1493
- type: String,
1494
- default: void 0
1495
- } },
1496
- setup(t, { slots: n }) {
1497
- let r = `nav-item-${++hn}`, i = pn(), a = b(() => i.activeItem.value === r), o = b(() => e("relative", t.class));
1498
- I(fn, { itemId: r });
1499
- function s() {
1500
- i.setActiveItem(r);
1501
- }
1502
- function c() {
1503
- i.setActiveItem(null);
1504
- }
1505
- return () => O("div", {
1506
- class: o.value,
1507
- "data-state": a.value ? "open" : "closed",
1508
- onMouseenter: s,
1509
- onMouseleave: c
1510
- }, n.default?.());
1511
- }
1512
- }), _n = D({
1513
- name: "UNavigationMenuLink",
1514
- props: {
1515
- href: {
1516
- type: String,
1517
- default: void 0
1518
- },
1519
- active: {
1520
- type: Boolean,
1521
- default: !1
1522
- },
1523
- class: {
1524
- type: String,
1525
- default: void 0
1526
- }
1527
- },
1528
- setup(t, { slots: n }) {
1529
- let r = b(() => e("inline-flex items-center rounded-md px-3 py-2 text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring/30 focus-visible:ring-offset-1", t.active ? "bg-surface-3 text-text-primary" : "text-text-secondary hover:bg-surface-3 hover:text-text-primary", t.class));
1530
- return () => O("a", {
1531
- href: t.href,
1532
- class: r.value
1533
- }, n.default?.());
1534
- }
1535
- }), vn = D({
1536
- name: "UNavigationMenuTrigger",
1537
- props: { class: {
1538
- type: String,
1539
- default: void 0
1540
- } },
1541
- setup(t, { slots: n }) {
1542
- let r = pn(), i = mn(), a = b(() => r.activeItem.value === i.itemId), o = b(() => e("inline-flex items-center gap-1 rounded-md px-3 py-2 text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring/30 focus-visible:ring-offset-1", a.value ? "bg-surface-3 text-text-primary" : "text-text-secondary hover:bg-surface-3 hover:text-text-primary", t.class)), s = b(() => e("transition-transform duration-200", a.value ? "rotate-180" : ""));
1543
- return () => O("button", {
1544
- type: "button",
1545
- "aria-expanded": a.value,
1546
- class: o.value
1547
- }, [n.default?.(), O(ce, {
1548
- size: 14,
1549
- class: s.value
1550
- })]);
1551
- }
1552
- }), yn = D({
1553
- name: "UNavigationMenuContent",
1554
- props: { class: {
1555
- type: String,
1556
- default: void 0
1557
- } },
1558
- setup(t, { slots: n }) {
1559
- let r = pn(), i = mn(), a = b(() => r.activeItem.value === i.itemId), o = b(() => e("absolute left-0 top-full z-50 mt-1 min-w-40 rounded-md border border-border-base bg-surface-1 py-1 shadow-lg", t.class));
1560
- return () => a.value ? O("div", { class: o.value }, n.default?.()) : null;
1561
- }
1562
- }), bn = /* @__PURE__ */ D({
1563
- name: "UNavigationMenu",
1564
- __name: "navigation-menu",
1565
- props: { class: { default: void 0 } },
1566
- setup(t) {
1567
- let n = t, r = L(null), i = b(() => e("relative flex items-center gap-1", n.class));
1568
- function a(e) {
1569
- r.value = e;
1570
- }
1571
- return I(dn, {
1572
- activeItem: r,
1573
- setActiveItem: a
1574
- }), (e, t) => (F(), C("nav", { class: M(i.value) }, [z(e.$slots, "default")], 2));
1575
- }
1576
- }), xn = Symbol("AvatarContext");
1577
- //#endregion
1578
- //#region src/components/avatar.vue?vue&type=script&setup=true&lang.ts
1579
- function Sn(e) {
1580
- let t = k(xn);
1581
- if (!t) throw Error(`<${e}> 必须在 <UAvatar> 内使用`);
1582
- return t;
1583
- }
1584
- var Cn = D({
1585
- name: "UAvatarImage",
1586
- inheritAttrs: !1,
1587
- props: {
1588
- src: {
1589
- type: String,
1590
- required: !0
1591
- },
1592
- alt: {
1593
- type: String,
1594
- default: ""
1595
- },
1596
- class: {
1597
- type: String,
1598
- default: void 0
1599
- }
1600
- },
1601
- emits: {
1602
- error: (e) => !0,
1603
- load: (e) => !0
1604
- },
1605
- setup(t, { attrs: n, emit: r }) {
1606
- let i = Sn("UAvatarImage");
1607
- G(() => t.src, (e) => {
1608
- i.setImageLoadingStatus(e ? "loading" : "error");
1609
- }, { immediate: !0 });
1610
- function a(e) {
1611
- i.setImageLoadingStatus("error"), r("error", e);
1612
- }
1613
- function o(e) {
1614
- i.setImageLoadingStatus("loaded"), r("load", e);
1615
- }
1616
- return () => {
1617
- let r = i.imageLoadingStatus.value;
1618
- return r !== "loaded" && r !== "loading" ? null : O("img", {
1619
- ...n,
1620
- src: t.src,
1621
- alt: t.alt,
1622
- class: e("h-full w-full object-cover", r === "loading" && "invisible", t.class),
1623
- onError: a,
1624
- onLoad: o
1625
- });
1626
- };
1627
- }
1628
- }), wn = D({
1629
- name: "UAvatarFallback",
1630
- props: { class: {
1631
- type: String,
1632
- default: void 0
1633
- } },
1634
- setup(t, { attrs: n, slots: r }) {
1635
- let i = Sn("UAvatarFallback"), a = b(() => e("absolute inset-0 flex items-center justify-center font-medium text-text-secondary", t.class));
1636
- return () => i.imageLoadingStatus.value === "loaded" ? null : O("span", {
1637
- ...n,
1638
- class: a.value
1639
- }, r.default?.() ?? [O(he, { size: 16 })]);
1640
- }
1641
- }), Tn = /* @__PURE__ */ D({
1642
- name: "UAvatar",
1643
- __name: "avatar",
1644
- props: {
1645
- size: { default: "md" },
1646
- class: { default: void 0 }
1647
- },
1648
- setup(t) {
1649
- let n = t, r = {
1650
- sm: "h-8 w-8 text-xs",
1651
- md: "h-10 w-10 text-sm",
1652
- lg: "h-14 w-14 text-base",
1653
- xl: "h-20 w-20 text-xl"
1654
- }, i = b(() => e("relative inline-flex shrink-0 items-center justify-center overflow-hidden rounded-full bg-surface-3", r[n.size], n.class)), a = L("idle");
1655
- return I(xn, {
1656
- imageLoadingStatus: a,
1657
- setImageLoadingStatus: (e) => {
1658
- a.value = e;
1659
- }
1660
- }), (e, t) => (F(), C("span", { class: M(i.value) }, [z(e.$slots, "default")], 2));
1661
- }
1662
- }), En = [
1663
- "src",
1664
- "alt",
1665
- "onError"
1666
- ], Dn = {
1667
- key: 1,
1668
- class: "flex h-full w-full items-center justify-center font-medium text-text-secondary"
1669
- }, On = ["aria-label"], kn = /* @__PURE__ */ D({
1670
- name: "UAvatarGroup",
1671
- __name: "avatar-group",
1672
- props: {
1673
- items: {},
1674
- max: { default: 5 },
1675
- size: { default: "default" },
1676
- class: { default: void 0 }
1677
- },
1678
- setup(t) {
1679
- let n = t, r = {
1680
- sm: "h-8 w-8 text-xs",
1681
- default: "h-10 w-10 text-sm",
1682
- lg: "h-14 w-14 text-base"
1683
- }, i = {
1684
- sm: "ring-2",
1685
- default: "ring-2",
1686
- lg: "ring-[3px]"
1687
- }, a = {
1688
- sm: "-ml-1.5",
1689
- default: "-ml-2",
1690
- lg: "-ml-3"
1691
- }, o = b(() => n.items.slice(0, n.max)), s = b(() => Math.max(0, n.items.length - n.max)), c = b(() => e("flex max-w-full items-center overflow-hidden py-0.5", n.class));
1692
- function l(t) {
1693
- return e("relative inline-flex shrink-0 overflow-hidden rounded-full border border-border-base bg-surface-2 ring-surface-1", r[n.size], i[n.size], t > 0 && a[n.size]);
1694
- }
1695
- let u = b(() => e("relative inline-flex shrink-0 items-center justify-center rounded-full border border-border-base bg-surface-2 font-medium text-text-secondary ring-surface-1", r[n.size], i[n.size], a[n.size])), d = /* @__PURE__ */ new Map();
1696
- function f(e) {
1697
- d.set(e, !0);
1698
- }
1699
- return (e, t) => (F(), C("div", { class: M(c.value) }, [(F(!0), C(v, null, R(o.value, (e, t) => (F(), C("span", {
1700
- key: t,
1701
- class: M(l(t))
1702
- }, [e.src && !H(d).get(t) ? (F(), C("img", {
1703
- key: 0,
1704
- src: e.src,
1705
- alt: e.alt ?? "",
1706
- class: "h-full w-full object-cover",
1707
- onError: (e) => f(t)
1708
- }, null, 40, En)) : (F(), C("span", Dn, [e.fallback ? (F(), C(v, { key: 0 }, [T(V(e.fallback), 1)], 64)) : (F(), x(H(he), {
1709
- key: 1,
1710
- size: 16
1711
- }))]))], 2))), 128)), s.value > 0 ? (F(), C("span", {
1712
- key: 0,
1713
- class: M(u.value),
1714
- "aria-label": `还有 ${s.value} 人`
1715
- }, " +" + V(s.value), 11, On)) : S("", !0)], 2));
1716
- }
1717
- }), An = Symbol("ug-tooltip-context");
1718
- //#endregion
1719
- //#region src/components/tooltip.vue?vue&type=script&setup=true&lang.ts
1720
- function jn() {
1721
- let e = k(An);
1722
- if (!e) throw Error("Tooltip 子组件必须在 <UTooltip> 内使用");
1723
- return e;
1724
- }
1725
- function $() {
1726
- return typeof window < "u" && typeof document < "u";
1727
- }
1728
- var Mn = {
1729
- top: "after:absolute after:left-1/2 after:top-full after:-translate-x-1/2 after:border-4 after:border-transparent after:border-t-text-primary",
1730
- bottom: "after:absolute after:bottom-full after:left-1/2 after:-translate-x-1/2 after:border-4 after:border-transparent after:border-b-text-primary",
1731
- left: "after:absolute after:left-full after:top-1/2 after:-translate-y-1/2 after:border-4 after:border-transparent after:border-l-text-primary",
1732
- right: "after:absolute after:right-full after:top-1/2 after:-translate-y-1/2 after:border-4 after:border-transparent after:border-r-text-primary"
1733
- }, Nn = D({
1734
- name: "UTooltipTrigger",
1735
- props: { class: {
1736
- type: String,
1737
- default: void 0
1738
- } },
1739
- setup(t, { slots: n }) {
1740
- let r = jn(), i = b(() => e("inline-flex", t.class));
1741
- function a(e) {
1742
- r.triggerRef.value = e;
1743
- }
1744
- function o() {
1745
- typeof window > "u" || (r.delayTimer.value !== null && window.clearTimeout(r.delayTimer.value), r.delayTimer.value = window.setTimeout(() => {
1746
- r.setOpen(!0);
1747
- }, 200));
1748
- }
1749
- function s() {
1750
- typeof window < "u" && r.delayTimer.value !== null && (window.clearTimeout(r.delayTimer.value), r.delayTimer.value = null), r.setOpen(!1);
1751
- }
1752
- return () => O("span", {
1753
- class: i.value,
1754
- onMouseenter: o,
1755
- onMouseleave: s,
1756
- onVnodeMounted(e) {
1757
- a(e.el);
1758
- },
1759
- onVnodeUpdated(e) {
1760
- a(e.el);
1761
- }
1762
- }, n.default?.());
1763
- }
1764
- }), Pn = D({
1765
- name: "UTooltipContent",
1766
- props: {
1767
- side: {
1768
- type: String,
1769
- default: "top"
1770
- },
1771
- class: {
1772
- type: String,
1773
- default: void 0
1774
- }
1775
- },
1776
- setup(t, { slots: n }) {
1777
- let r = jn(), i = L(null), a = L({
1778
- top: 0,
1779
- left: 0
1780
- }), o = b(() => e("absolute z-50 rounded-md bg-text-primary px-2.5 py-1.5 text-xs text-surface-1 shadow-md", Mn[t.side], t.class));
1781
- function s() {
1782
- if (!r.triggerRef.value || !i.value || !$()) return;
1783
- let e = r.triggerRef.value.getBoundingClientRect(), n = i.value.offsetWidth, o = i.value.offsetHeight, s = 0, c = 0;
1784
- t.side === "top" ? (s = e.top + window.scrollY - o - 8, c = e.left + window.scrollX + e.width / 2 - n / 2) : t.side === "bottom" ? (s = e.bottom + window.scrollY + 8, c = e.left + window.scrollX + e.width / 2 - n / 2) : t.side === "left" ? (s = e.top + window.scrollY + e.height / 2 - o / 2, c = e.left + window.scrollX - n - 8) : (s = e.top + window.scrollY + e.height / 2 - o / 2, c = e.right + window.scrollX + 8), a.value = {
1785
- top: s,
1786
- left: c
1787
- };
1788
- }
1789
- function c() {
1790
- $() && (window.addEventListener("resize", s), window.addEventListener("scroll", s, !0));
1791
- }
1792
- function l() {
1793
- $() && (window.removeEventListener("resize", s), window.removeEventListener("scroll", s, !0));
1794
- }
1795
- return G(() => r.open.value, async (e) => {
1796
- l(), !(!e || !$()) && (await j(), s(), c());
1797
- }, { immediate: !0 }), P(() => {
1798
- l();
1799
- }), () => r.open.value ? O(y, { to: "body" }, [O("div", {
1800
- ref: i,
1801
- class: o.value,
1802
- style: {
1803
- top: `${a.value.top}px`,
1804
- left: `${a.value.left}px`
1805
- }
1806
- }, n.default?.())]) : null;
1807
- }
1808
- }), Fn = /* @__PURE__ */ D({
1809
- name: "UTooltip",
1810
- __name: "tooltip",
1811
- props: { class: { default: void 0 } },
1812
- setup(t) {
1813
- let n = t, r = L(!1), i = L(null), a = L(null), o = b(() => e("relative inline-flex", n.class));
1814
- function s(e) {
1815
- r.value = e;
1816
- }
1817
- return I(An, {
1818
- open: r,
1819
- triggerRef: i,
1820
- delayTimer: a,
1821
- setOpen: s
1822
- }), (e, t) => (F(), C("span", { class: M(o.value) }, [z(e.$slots, "default")], 2));
1823
- }
1824
- }), In = { class: "flex flex-col gap-0.5" };
1825
- function Ln(t, n, r) {
1826
- return D({
1827
- name: t,
1828
- props: { class: {
1829
- type: String,
1830
- default: void 0
1831
- } },
1832
- setup(t, { attrs: i, slots: a }) {
1833
- let o = b(() => e(r, t.class));
1834
- return () => O(n, {
1835
- ...i,
1836
- class: o.value
1837
- }, a.default?.());
1838
- }
1839
- });
1840
- }
1841
- var Rn = Ln("UAlertTitle", "p", "text-sm font-semibold leading-5"), zn = Ln("UAlertDescription", "p", "text-sm leading-5 opacity-90"), Bn = /* @__PURE__ */ D({
1842
- name: "UAlert",
1843
- __name: "alert",
1844
- props: {
1845
- variant: { default: "default" },
1846
- class: { default: void 0 }
1847
- },
1848
- setup(t) {
1849
- let n = t, r = {
1850
- default: "border-l-primary bg-info-soft text-info-soft-fg",
1851
- info: "border-l-info bg-info-soft text-info-soft-fg",
1852
- success: "border-l-success bg-success-soft text-success-soft-fg",
1853
- warning: "border-l-warning bg-warning-soft text-warning-soft-fg",
1854
- destructive: "border-l-danger bg-danger-soft text-danger-soft-fg"
1855
- }, i = {
1856
- default: ie,
1857
- info: de,
1858
- success: se,
1859
- warning: ae,
1860
- destructive: ie
1861
- }, a = {
1862
- default: "text-info",
1863
- info: "text-info",
1864
- success: "text-success",
1865
- warning: "text-warning",
1866
- destructive: "text-danger"
1867
- }, o = b(() => e("relative flex gap-3 rounded-md border-l-4 p-4", r[n.variant], n.class)), s = b(() => i[n.variant]), c = b(() => e("mt-0.5 shrink-0", a[n.variant]));
1868
- return (e, t) => (F(), C("div", {
1869
- role: "alert",
1870
- class: M(o.value)
1871
- }, [(F(), x(B(s.value), {
1872
- size: 18,
1873
- class: M(c.value)
1874
- }, null, 8, ["class"])), w("div", In, [z(e.$slots, "default")])], 2));
1875
- }
1876
- }), Vn = { class: "flex flex-wrap items-center gap-0 text-sm text-text-secondary" }, Hn = D({
1877
- name: "UBreadcrumbItem",
1878
- props: { class: {
1879
- type: String,
1880
- default: void 0
1881
- } },
1882
- setup(t, { attrs: n, slots: r }) {
1883
- let i = b(() => e("flex items-center gap-1", t.class));
1884
- return () => O("li", {
1885
- ...n,
1886
- class: i.value
1887
- }, r.default?.());
1888
- }
1889
- }), Un = D({
1890
- name: "UBreadcrumbLink",
1891
- inheritAttrs: !1,
1892
- props: {
1893
- current: {
1894
- type: Boolean,
1895
- default: !1
1896
- },
1897
- href: {
1898
- type: String,
1899
- default: void 0
1900
- },
1901
- class: {
1902
- type: String,
1903
- default: void 0
1904
- }
1905
- },
1906
- setup(t, { attrs: n, slots: r }) {
1907
- let i = b(() => e(t.current ? "font-medium text-text-primary" : "transition-colors hover:text-text-primary", t.class));
1908
- return () => t.current ? O("span", {
1909
- ...n,
1910
- "aria-current": "page",
1911
- class: i.value
1912
- }, r.default?.()) : O("a", {
1913
- ...n,
1914
- href: t.href,
1915
- class: i.value
1916
- }, r.default?.());
1917
- }
1918
- }), Wn = D({
1919
- name: "UBreadcrumbSeparator",
1920
- props: { class: {
1921
- type: String,
1922
- default: void 0
1923
- } },
1924
- setup(t, { attrs: n, slots: r }) {
1925
- let i = b(() => e("text-text-tertiary", t.class));
1926
- return () => O("li", {
1927
- ...n,
1928
- role: "presentation",
1929
- "aria-hidden": "true",
1930
- class: i.value
1931
- }, r.default?.() ?? [O(ue, { size: 14 })]);
1932
- }
1933
- }), Gn = /* @__PURE__ */ D({
1934
- name: "UBreadcrumb",
1935
- __name: "breadcrumb",
1936
- props: { class: { default: void 0 } },
1937
- setup(t) {
1938
- let n = t, r = b(() => e(n.class));
1939
- return (e, t) => (F(), C("nav", {
1940
- "aria-label": "面包屑导航",
1941
- class: M(r.value)
1942
- }, [w("ol", Vn, [z(e.$slots, "default")])], 2));
1943
- }
1944
- }), Kn = ["for"], qn = { key: 0 }, Jn = [
1945
- "id",
1946
- "aria-checked",
1947
- "disabled"
1948
- ], Yn = { key: 1 }, Xn = [
1949
- "id",
1950
- "aria-checked",
1951
- "disabled"
1952
- ], Zn = /* @__PURE__ */ D({
1953
- name: "USwitch",
1954
- __name: "switch",
1955
- props: /* @__PURE__ */ A({
1956
- disabled: {
1957
- type: Boolean,
1958
- default: !1
1959
- },
1960
- label: { default: void 0 },
1961
- labelPlacement: { default: "right" },
1962
- id: { default: void 0 },
1963
- class: { default: void 0 }
1964
- }, {
1965
- checked: {
1966
- type: Boolean,
1967
- default: !1
1968
- },
1969
- checkedModifiers: {}
1970
- }),
1971
- emits: /* @__PURE__ */ A(["change"], ["update:checked"]),
1972
- setup(t, { emit: n }) {
1973
- let r = t, i = n, a = W(t, "checked"), o = U(), s = b(() => r.id ?? o), c = b(() => e("relative inline-flex h-6 w-11 shrink-0 items-center rounded-full border border-transparent p-0.5 shadow-sm transition-colors duration-200", "focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring/35 focus-visible:ring-offset-2 focus-visible:ring-offset-surface-0", "disabled:cursor-not-allowed disabled:opacity-50", a.value ? "bg-primary hover:bg-primary-hover" : "bg-surface-3 hover:bg-border-strong", r.class)), l = b(() => e("inline-flex cursor-pointer items-center gap-2.5 text-sm font-medium leading-5 text-text-primary", r.disabled && "cursor-not-allowed opacity-50"));
1974
- function u() {
1975
- r.disabled || (a.value = !a.value, i("change", a.value));
1976
- }
1977
- return (n, r) => t.label ? (F(), C("label", {
1978
- key: 0,
1979
- for: s.value,
1980
- class: M(l.value)
1981
- }, [
1982
- t.labelPlacement === "left" ? (F(), C("span", qn, V(t.label), 1)) : S("", !0),
1983
- w("button", {
1984
- id: s.value,
1985
- type: "button",
1986
- role: "switch",
1987
- "aria-checked": a.value,
1988
- disabled: t.disabled,
1989
- class: M(c.value),
1990
- onClick: u
1991
- }, [w("span", { class: M(H(e)("pointer-events-none block h-5 w-5 rounded-full bg-primary-fg shadow-md ring-0 transition-transform duration-200", a.value ? "translate-x-5" : "translate-x-0")) }, null, 2)], 10, Jn),
1992
- t.labelPlacement === "right" ? (F(), C("span", Yn, V(t.label), 1)) : S("", !0)
1993
- ], 10, Kn)) : (F(), C("button", {
1994
- key: 1,
1995
- id: s.value,
1996
- type: "button",
1997
- role: "switch",
1998
- "aria-checked": a.value,
1999
- disabled: t.disabled,
2000
- class: M(c.value),
2001
- onClick: u
2002
- }, [w("span", { class: M(H(e)("pointer-events-none block h-5 w-5 rounded-full bg-primary-fg shadow-md ring-0 transition-transform duration-200", a.value ? "translate-x-5" : "translate-x-0")) }, null, 2)], 10, Xn));
2003
- }
2004
- }), Qn = { class: "flex flex-col gap-1" }, $n = ["for"], er = [
2005
- "id",
2006
- "value",
2007
- "rows",
2008
- "disabled",
2009
- "placeholder"
2010
- ], tr = {
2011
- key: 1,
2012
- class: "text-xs text-danger"
2013
- }, nr = {
2014
- key: 2,
2015
- class: "text-xs text-text-secondary"
2016
- }, rr = /* @__PURE__ */ D({
2017
- name: "UTextarea",
2018
- inheritAttrs: !1,
2019
- __name: "textarea",
2020
- props: /* @__PURE__ */ A({
2021
- label: { default: void 0 },
2022
- error: { default: void 0 },
2023
- helperText: { default: void 0 },
2024
- id: { default: void 0 },
2025
- rows: { default: 3 },
2026
- disabled: {
2027
- type: Boolean,
2028
- default: !1
2029
- },
2030
- placeholder: { default: void 0 },
2031
- class: { default: void 0 }
2032
- }, {
2033
- modelValue: {},
2034
- modelModifiers: {}
2035
- }),
2036
- emits: /* @__PURE__ */ A([
2037
- "blur",
2038
- "focus",
2039
- "input",
2040
- "change"
2041
- ], ["update:modelValue"]),
2042
- setup(t, { expose: n, emit: r }) {
2043
- let i = t, a = r, o = W(t, "modelValue"), s = te(), c = U(), l = b(() => i.id ?? c), u = L(null), d = b(() => e("w-full rounded-md border bg-surface-1 px-3 py-2 text-sm text-text-primary placeholder:text-text-tertiary", "focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-offset-1", "disabled:cursor-not-allowed disabled:opacity-50 resize-y", i.error ? "border-danger focus-visible:ring-danger" : "border-border-strong focus-visible:ring-ring/30", i.class)), f = b(() => {
2044
- let e = { ...s };
2045
- return delete e.class, e;
2046
- });
2047
- function p(e) {
2048
- o.value = e.target.value, a("input", e);
2049
- }
2050
- function m(e) {
2051
- a("change", e);
2052
- }
2053
- function h(e) {
2054
- a("blur", e);
2055
- }
2056
- function g(e) {
2057
- a("focus", e);
2058
- }
2059
- function _() {
2060
- u.value?.focus();
2061
- }
2062
- function v() {
2063
- u.value?.blur();
2064
- }
2065
- return n({
2066
- focus: _,
2067
- blur: v,
2068
- el: u
2069
- }), (e, n) => (F(), C("div", Qn, [
2070
- t.label ? (F(), C("label", {
2071
- key: 0,
2072
- for: l.value,
2073
- class: "text-sm font-medium text-text-primary"
2074
- }, V(t.label), 9, $n)) : S("", !0),
2075
- w("textarea", ee({
2076
- id: l.value,
2077
- ref_key: "textareaRef",
2078
- ref: u,
2079
- value: o.value ?? "",
2080
- rows: t.rows,
2081
- disabled: t.disabled,
2082
- placeholder: t.placeholder,
2083
- class: d.value
2084
- }, f.value, {
2085
- onInput: p,
2086
- onChange: m,
2087
- onBlur: h,
2088
- onFocus: g
2089
- }), null, 16, er),
2090
- t.error ? (F(), C("p", tr, V(t.error), 1)) : t.helperText ? (F(), C("p", nr, V(t.helperText), 1)) : S("", !0)
2091
- ]));
2092
- }
2093
- }), ir = /* @__PURE__ */ D({
2094
- name: "USkeleton",
2095
- __name: "skeleton",
2096
- props: {
2097
- variant: { default: "rect" },
2098
- class: { default: void 0 }
2099
- },
2100
- setup(t) {
2101
- let n = t, r = {
2102
- text: "h-4 w-full rounded",
2103
- circle: "rounded-full",
2104
- rect: "rounded-md"
2105
- }, i = b(() => e("animate-pulse bg-surface-3", r[n.variant], n.class));
2106
- return (e, t) => (F(), C("div", {
2107
- class: M(i.value),
2108
- "aria-hidden": "true"
2109
- }, null, 2));
2110
- }
2111
- }), ar = ["aria-valuenow", "aria-valuemax"], or = {
2112
- key: 0,
2113
- class: "w-9 shrink-0 text-right text-xs font-medium tabular-nums text-text-secondary"
2114
- }, sr = /* @__PURE__ */ D({
2115
- name: "UProgress",
2116
- __name: "progress",
2117
- props: {
2118
- value: {},
2119
- max: { default: 100 },
2120
- showLabel: {
2121
- type: Boolean,
2122
- default: !1
2123
- },
2124
- color: { default: "primary" },
2125
- class: { default: void 0 }
2126
- },
2127
- setup(t) {
2128
- let n = {
2129
- primary: "bg-primary",
2130
- success: "bg-success",
2131
- warning: "bg-warning",
2132
- danger: "bg-danger",
2133
- info: "bg-info"
2134
- }, r = t, i = b(() => Math.min(Math.max(r.value, 0), r.max)), a = b(() => Math.round(i.value / r.max * 100)), o = b(() => e("flex items-center gap-3", r.class)), s = b(() => e("h-full rounded-full transition-all duration-500 ease-out", n[r.color]));
2135
- return (e, n) => (F(), C("div", { class: M(o.value) }, [w("div", {
2136
- role: "progressbar",
2137
- "aria-valuenow": i.value,
2138
- "aria-valuemin": "0",
2139
- "aria-valuemax": t.max,
2140
- class: "h-2 w-full overflow-hidden rounded-full bg-surface-2"
2141
- }, [w("div", {
2142
- class: M(s.value),
2143
- style: N({ width: `${a.value}%` })
2144
- }, null, 6)], 8, ar), t.showLabel ? (F(), C("span", or, V(a.value) + "% ", 1)) : S("", !0)], 2));
2145
- }
2146
- }), cr = {
2147
- key: 0,
2148
- class: "fixed inset-0 z-50 flex",
2149
- role: "dialog",
2150
- "aria-modal": "true"
2151
- }, lr = {
2152
- key: 0,
2153
- class: "flex items-center justify-between border-b border-border-base px-5 py-4"
2154
- }, ur = {
2155
- key: 0,
2156
- class: "text-base font-semibold text-text-primary"
2157
- }, dr = { key: 1 }, fr = { class: "flex-1 overflow-y-auto px-5 py-4" }, pr = {
2158
- key: 1,
2159
- class: "border-t border-border-base px-5 py-4"
2160
- }, mr = /* @__PURE__ */ D({
2161
- name: "USheet",
2162
- __name: "sheet",
2163
- props: /* @__PURE__ */ A({
2164
- side: { default: "right" },
2165
- title: { default: void 0 },
2166
- closeOnOverlay: {
2167
- type: Boolean,
2168
- default: !0
2169
- },
2170
- closeOnEsc: {
2171
- type: Boolean,
2172
- default: !0
2173
- },
2174
- showCloseButton: {
2175
- type: Boolean,
2176
- default: !0
2177
- },
2178
- class: { default: void 0 }
2179
- }, {
2180
- open: {
2181
- type: Boolean,
2182
- default: !1
2183
- },
2184
- openModifiers: {}
2185
- }),
2186
- emits: /* @__PURE__ */ A(["close", "openChange"], ["update:open"]),
2187
- setup(t, { emit: n }) {
2188
- let r = t, i = n, a = W(t, "open"), o = b(() => e("relative flex h-full w-80 max-w-full flex-col bg-surface-1 shadow-xl transition-transform duration-300 ease-in-out", r.side === "right" ? "ml-auto" : "mr-auto", r.class));
2189
- function s(e) {
2190
- typeof document > "u" || (document.body.style.overflow = e ? "hidden" : "");
2191
- }
2192
- function c() {
2193
- a.value = !1, i("openChange", !1), i("close");
2194
- }
2195
- function l() {
2196
- r.closeOnOverlay && c();
2197
- }
2198
- function u(e) {
2199
- e.key === "Escape" && r.closeOnEsc && a.value && c();
2200
- }
2201
- return G(a, (e) => {
2202
- if (s(e), e && typeof document < "u") {
2203
- document.addEventListener("keydown", u), i("openChange", !0);
2204
- return;
2205
- }
2206
- typeof document < "u" && document.removeEventListener("keydown", u);
2207
- }, { immediate: !0 }), P(() => {
2208
- s(!1), typeof document < "u" && document.removeEventListener("keydown", u);
2209
- }), (e, n) => (F(), x(y, { to: "body" }, [a.value ? (F(), C("div", cr, [w("div", {
2210
- class: "absolute inset-0 bg-overlay transition-opacity",
2211
- "aria-hidden": "true",
2212
- onClick: l
2213
- }), w("div", {
2214
- class: M(o.value),
2215
- onClick: n[0] || (n[0] = re(() => {}, ["stop"]))
2216
- }, [
2217
- t.title || e.$slots.header || t.showCloseButton ? (F(), C("div", lr, [z(e.$slots, "header", {}, () => [t.title ? (F(), C("h2", ur, V(t.title), 1)) : (F(), C("div", dr))]), t.showCloseButton ? (F(), C("button", {
2218
- key: 0,
2219
- type: "button",
2220
- class: "rounded-md p-1 text-text-tertiary transition-colors hover:bg-surface-3 hover:text-text-secondary",
2221
- "aria-label": "关闭",
2222
- onClick: c
2223
- }, [E(H(ge), { size: 18 })])) : S("", !0)])) : S("", !0),
2224
- w("div", fr, [z(e.$slots, "default")]),
2225
- e.$slots.footer ? (F(), C("div", pr, [z(e.$slots, "footer")])) : S("", !0)
2226
- ], 2)])) : S("", !0)]));
2227
- }
2228
- }), hr = {
2229
- key: 0,
2230
- class: "flex h-14 w-14 items-center justify-center rounded-full bg-surface-2"
2231
- }, gr = { class: "flex flex-col gap-1" }, _r = {
2232
- key: 0,
2233
- class: "text-base font-semibold text-text-primary"
2234
- }, vr = {
2235
- key: 0,
2236
- class: "max-w-xs text-sm text-text-secondary"
2237
- }, yr = {
2238
- key: 0,
2239
- class: "mt-1"
2240
- }, br = /* @__PURE__ */ D({
2241
- name: "UEmptyState",
2242
- __name: "empty-state",
2243
- props: {
2244
- icon: { default: void 0 },
2245
- title: { default: void 0 },
2246
- description: { default: void 0 },
2247
- class: { default: void 0 }
2248
- },
2249
- setup(t) {
2250
- let n = t, r = b(() => e("flex flex-col items-center justify-center gap-3 py-16 text-center", n.class));
2251
- return (e, n) => (F(), C("div", { class: M(r.value) }, [
2252
- z(e.$slots, "icon", {}, () => [t.icon ? (F(), C("div", hr, [(F(), x(B(t.icon), {
2253
- size: 28,
2254
- class: "text-text-tertiary"
2255
- }))])) : S("", !0)]),
2256
- w("div", gr, [z(e.$slots, "title", {}, () => [t.title ? (F(), C("p", _r, V(t.title), 1)) : S("", !0)]), z(e.$slots, "description", {}, () => [t.description ? (F(), C("p", vr, V(t.description), 1)) : S("", !0)])]),
2257
- e.$slots.action ? (F(), C("div", yr, [z(e.$slots, "action")])) : S("", !0)
2258
- ], 2));
2259
- }
2260
- }), xr = ["disabled"], Sr = {
2261
- key: 0,
2262
- class: "inline-flex h-8 min-w-6 shrink-0 items-center justify-center select-none text-text-tertiary"
2263
- }, Cr = ["aria-current", "onClick"], wr = ["disabled"], Tr = "inline-flex h-8 min-w-8 shrink-0 items-center justify-center rounded-lg px-2 text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring/30 focus-visible:ring-offset-2 focus-visible:ring-offset-surface-0 disabled:pointer-events-none disabled:opacity-40", Er = "border border-border-strong bg-surface-1 text-text-primary hover:border-primary/60 hover:bg-surface-2", Dr = /* @__PURE__ */ D({
2264
- name: "UPagination",
2265
- __name: "pagination",
2266
- props: /* @__PURE__ */ A({
2267
- totalPages: {},
2268
- class: { default: void 0 }
2269
- }, {
2270
- page: { default: 1 },
2271
- pageModifiers: {}
2272
- }),
2273
- emits: /* @__PURE__ */ A(["pageChange"], ["update:page"]),
2274
- setup(t, { emit: n }) {
2275
- let r = t, i = n, a = W(t, "page"), o = b(() => e("flex max-w-full flex-wrap items-center gap-1", r.class)), s = b(() => {
2276
- let e = a.value, t = r.totalPages;
2277
- return t <= 5 ? Array.from({ length: t }, (e, t) => t + 1) : e <= 3 ? [
2278
- 1,
2279
- 2,
2280
- 3,
2281
- "...",
2282
- t
2283
- ] : e >= t - 2 ? [
2284
- 1,
2285
- "...",
2286
- t - 2,
2287
- t - 1,
2288
- t
2289
- ] : [
2290
- 1,
2291
- "...",
2292
- e,
2293
- "...",
2294
- t
2295
- ];
2296
- });
2297
- function c(e) {
2298
- let t = Math.min(Math.max(e, 1), r.totalPages);
2299
- t !== a.value && (a.value = t, i("pageChange", t));
2300
- }
2301
- return (n, r) => (F(), C("div", { class: M(o.value) }, [
2302
- w("button", {
2303
- type: "button",
2304
- class: M(H(e)(Tr, Er)),
2305
- disabled: a.value <= 1,
2306
- "aria-label": "上一页",
2307
- onClick: r[0] || (r[0] = (e) => c(a.value - 1))
2308
- }, [E(H(le), { size: 16 })], 10, xr),
2309
- (F(!0), C(v, null, R(s.value, (t, n) => (F(), C(v, { key: `${t}-${n}` }, [t === "..." ? (F(), C("span", Sr, "…")) : (F(), C("button", {
2310
- key: 1,
2311
- type: "button",
2312
- class: M(H(e)(Tr, t === a.value ? "bg-primary text-primary-fg shadow-sm" : Er)),
2313
- "aria-current": t === a.value ? "page" : void 0,
2314
- onClick: (e) => c(t)
2315
- }, V(t), 11, Cr))], 64))), 128)),
2316
- w("button", {
2317
- type: "button",
2318
- class: M(H(e)(Tr, Er)),
2319
- disabled: a.value >= t.totalPages,
2320
- "aria-label": "下一页",
2321
- onClick: r[1] || (r[1] = (e) => c(a.value + 1))
2322
- }, [E(H(ue), { size: 16 })], 10, wr)
2323
- ], 2));
2324
- }
2325
- }), Or = ["for"], kr = [
2326
- "id",
2327
- "value",
2328
- "disabled"
2329
- ], Ar = {
2330
- key: 0,
2331
- value: ""
2332
- }, jr = ["value"], Mr = { class: "relative" }, Nr = [
2333
- "id",
2334
- "disabled",
2335
- "aria-expanded",
2336
- "aria-controls"
2337
- ], Pr = ["id"], Fr = ["aria-selected"], Ir = ["aria-selected", "onClick"], Lr = {
2338
- key: 1,
2339
- class: "text-xs text-danger"
2340
- }, Rr = {
2341
- key: 2,
2342
- class: "text-xs text-text-secondary"
2343
- }, zr = /* @__PURE__ */ D({
2344
- name: "USelect",
2345
- inheritAttrs: !1,
2346
- __name: "select",
2347
- props: /* @__PURE__ */ A({
2348
- label: { default: void 0 },
2349
- error: { default: void 0 },
2350
- helperText: { default: void 0 },
2351
- options: {},
2352
- placeholder: { default: void 0 },
2353
- id: { default: void 0 },
2354
- disabled: {
2355
- type: Boolean,
2356
- default: !1
2357
- },
2358
- class: { default: void 0 }
2359
- }, {
2360
- modelValue: {},
2361
- modelModifiers: {}
2362
- }),
2363
- emits: /* @__PURE__ */ A([
2364
- "blur",
2365
- "focus",
2366
- "change"
2367
- ], ["update:modelValue"]),
2368
- setup(t, { expose: n, emit: r }) {
2369
- let i = t, a = r, o = W(t, "modelValue"), s = te(), c = U(), l = b(() => i.id ?? c), u = b(() => `${l.value}-listbox`), d = L(null), f = L(null), p = L(null), m = L(!1), h = b(() => String(o.value ?? "")), g = b(() => i.options.find((e) => String(e.value) === h.value)), _ = b(() => e("flex h-10 w-full items-center justify-between rounded-lg border bg-surface-1 px-3 py-2 text-left text-sm leading-5 text-text-primary shadow-sm", "transition-colors hover:border-primary/60", "focus-visible:border-primary focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring/25 focus-visible:ring-offset-1 focus-visible:ring-offset-surface-0", "disabled:cursor-not-allowed disabled:bg-surface-2 disabled:text-text-tertiary disabled:opacity-70", i.error ? "border-danger focus-visible:ring-danger/25" : "border-border-strong", i.class)), y = b(() => {
2370
- let e = { ...s };
2371
- return delete e.class, delete e.id, e;
2372
- });
2373
- function x() {
2374
- d.value && a("change", new Event("change"));
2375
- }
2376
- function T(e) {
2377
- i.disabled || (o.value = e, d.value && (d.value.value = e), x(), m.value = !1, p.value?.focus());
2378
- }
2379
- function D(e) {
2380
- o.value = e.target.value, a("change", e);
2381
- }
2382
- function O(e) {
2383
- a("focus", e);
2384
- }
2385
- function k(e) {
2386
- a("blur", e);
2387
- }
2388
- function A(e) {
2389
- f.value?.contains(e.target) || (m.value = !1);
2390
- }
2391
- function j(e) {
2392
- e.key === "Escape" && (m.value = !1);
2393
- }
2394
- function N() {
2395
- p.value?.focus();
2396
- }
2397
- function I() {
2398
- p.value?.blur();
2399
- }
2400
- return G(m, (e) => {
2401
- if (!(typeof document > "u")) {
2402
- if (e) {
2403
- document.addEventListener("pointerdown", A), document.addEventListener("keydown", j);
2404
- return;
2405
- }
2406
- document.removeEventListener("pointerdown", A), document.removeEventListener("keydown", j);
2407
- }
2408
- }), P(() => {
2409
- typeof document > "u" || (document.removeEventListener("pointerdown", A), document.removeEventListener("keydown", j));
2410
- }), n({
2411
- focus: N,
2412
- blur: I,
2413
- el: d
2414
- }), (n, r) => (F(), C("div", {
2415
- ref_key: "rootRef",
2416
- ref: f,
2417
- class: "relative flex flex-col gap-1.5"
2418
- }, [
2419
- t.label ? (F(), C("label", {
2420
- key: 0,
2421
- for: l.value,
2422
- class: "text-sm font-medium text-text-primary"
2423
- }, V(t.label), 9, Or)) : S("", !0),
2424
- w("select", ee({
2425
- id: `${l.value}-native`,
2426
- ref_key: "selectRef",
2427
- ref: d,
2428
- value: h.value,
2429
- disabled: t.disabled,
2430
- class: "sr-only",
2431
- tabindex: "-1",
2432
- "aria-hidden": "true"
2433
- }, y.value, { onChange: D }), [t.placeholder ? (F(), C("option", Ar, V(t.placeholder), 1)) : S("", !0), (F(!0), C(v, null, R(t.options, (e) => (F(), C("option", {
2434
- key: String(e.value),
2435
- value: e.value
2436
- }, V(e.label), 9, jr))), 128))], 16, kr),
2437
- w("div", Mr, [w("button", {
2438
- id: l.value,
2439
- ref_key: "triggerRef",
2440
- ref: p,
2441
- type: "button",
2442
- disabled: t.disabled,
2443
- class: M(_.value),
2444
- "aria-haspopup": "listbox",
2445
- "aria-expanded": m.value,
2446
- "aria-controls": u.value,
2447
- onClick: r[0] || (r[0] = (e) => m.value = !m.value),
2448
- onFocus: O,
2449
- onBlur: k
2450
- }, [w("span", { class: M(H(e)("truncate", !g.value && "text-text-tertiary")) }, V(g.value?.label ?? t.placeholder ?? "请选择"), 3), E(H(ce), {
2451
- "aria-hidden": "true",
2452
- class: M(H(e)("h-4 w-4 shrink-0 text-text-tertiary transition-transform", m.value && "rotate-180"))
2453
- }, null, 8, ["class"])], 42, Nr), m.value ? (F(), C("div", {
2454
- key: 0,
2455
- id: u.value,
2456
- role: "listbox",
2457
- class: "absolute left-0 right-0 top-full z-[70] mt-1 max-h-60 overflow-auto rounded-lg border border-border-strong bg-surface-1 p-1 shadow-xl"
2458
- }, [t.placeholder ? (F(), C("button", {
2459
- key: 0,
2460
- type: "button",
2461
- role: "option",
2462
- "aria-selected": h.value === "",
2463
- class: M(H(e)("flex w-full items-center rounded-md px-2.5 py-2 text-left text-sm text-text-tertiary transition-colors hover:bg-surface-2", h.value === "" && "bg-surface-2 text-text-primary")),
2464
- onClick: r[1] || (r[1] = (e) => T(""))
2465
- }, V(t.placeholder), 11, Fr)) : S("", !0), (F(!0), C(v, null, R(t.options, (t) => (F(), C("button", {
2466
- key: String(t.value),
2467
- type: "button",
2468
- role: "option",
2469
- "aria-selected": String(t.value) === h.value,
2470
- class: M(H(e)("flex w-full items-center rounded-md px-2.5 py-2 text-left text-sm text-text-primary transition-colors hover:bg-surface-2", String(t.value) === h.value && "bg-primary-soft text-primary-soft-fg")),
2471
- onClick: (e) => T(String(t.value))
2472
- }, V(t.label), 11, Ir))), 128))], 8, Pr)) : S("", !0)]),
2473
- t.error ? (F(), C("p", Lr, V(t.error), 1)) : t.helperText ? (F(), C("p", Rr, V(t.helperText), 1)) : S("", !0)
2474
- ], 512));
2475
- }
2476
- }), Br = {
2477
- key: 0,
2478
- class: "mb-3 text-base font-semibold text-text-primary"
2479
- }, Vr = {
2480
- key: 1,
2481
- class: "overflow-hidden rounded-lg border border-border-base bg-surface-1"
2482
- }, Hr = { class: "w-full table-fixed border-separate border-spacing-0" }, Ur = ["colspan"], Wr = D({
2483
- name: "UDescriptionsItem",
2484
- props: {
2485
- label: {
2486
- type: String,
2487
- required: !0
2488
- },
2489
- span: {
2490
- type: Number,
2491
- default: 1
2492
- },
2493
- class: {
2494
- type: String,
2495
- default: void 0
2496
- }
2497
- },
2498
- setup(t, { slots: n, attrs: r }) {
2499
- return () => O("div", {
2500
- ...r,
2501
- class: e("flex flex-col gap-0.5", t.class)
2502
- }, [O("span", { class: "text-xs font-medium text-text-secondary" }, t.label), O("span", { class: "text-sm text-text-primary" }, n.default?.())]);
2503
- }
2504
- }), Gr = /* @__PURE__ */ D({
2505
- name: "UDescriptions",
2506
- __name: "descriptions",
2507
- props: {
2508
- column: { default: 2 },
2509
- bordered: {
2510
- type: Boolean,
2511
- default: !1
2512
- },
2513
- size: { default: "default" },
2514
- title: { default: void 0 },
2515
- class: { default: void 0 }
2516
- },
2517
- setup(t) {
2518
- let n = t, r = {
2519
- 1: "grid-cols-1",
2520
- 2: "grid-cols-2",
2521
- 3: "grid-cols-3",
2522
- 4: "grid-cols-4"
2523
- }, i = {
2524
- sm: "px-3 py-2 text-xs",
2525
- default: "px-3.5 py-2.5 text-sm",
2526
- lg: "px-4 py-3 text-base"
2527
- }, a = {
2528
- sm: "px-3 py-2 text-xs",
2529
- default: "px-3.5 py-2.5 text-sm",
2530
- lg: "px-4 py-3 text-base"
2531
- }, o = b(() => e("w-full", n.class)), s = b(() => e("grid gap-x-6 gap-y-4", r[n.column])), c = b(() => e("border-r border-border-base bg-surface-2/80 font-medium text-text-secondary", i[n.size])), l = b(() => e("break-words font-medium text-text-primary", a[n.size])), u = ne();
2532
- function d() {
2533
- let e = u.default?.({}) ?? [], t = [];
2534
- for (let n of e) n.type?.name === "UDescriptionsItem" && t.push(n);
2535
- return t;
2536
- }
2537
- let f = b(() => {
2538
- let e = d(), t = [], r = [], i = 0;
2539
- for (let a of e) {
2540
- let e = a.props, o = e?.label ?? "", s = e?.span ?? 1;
2541
- i + s > n.column && (t.push(r), r = [], i = 0), r.push({
2542
- label: o,
2543
- span: s,
2544
- node: a
2545
- }), i += s;
2546
- }
2547
- return r.length > 0 && t.push(r), t;
2548
- }), p = b(() => n.column === 1 ? "34%" : `${Math.max(12, 100 / (n.column * 2))}%`);
2549
- return (n, r) => (F(), C("div", { class: M(o.value) }, [t.title ? (F(), C("div", Br, V(t.title), 1)) : S("", !0), t.bordered ? (F(), C("div", Vr, [w("table", Hr, [w("tbody", null, [(F(!0), C(v, null, R(f.value, (t, n) => (F(), C("tr", { key: n }, [(F(!0), C(v, null, R(t, (t, r) => (F(), C(v, { key: r }, [w("td", {
2550
- class: M(H(e)(c.value, n < f.value.length - 1 && "border-b border-border-base")),
2551
- style: N({ width: p.value })
2552
- }, V(t.label), 7), w("td", {
2553
- class: M(H(e)(l.value, n < f.value.length - 1 && "border-b border-border-base")),
2554
- colspan: t.span > 1 ? t.span * 2 - 1 : 1
2555
- }, [(F(), x(B(t.node)))], 10, Ur)], 64))), 128))]))), 128))])])])) : (F(), C("div", {
2556
- key: 2,
2557
- class: M(s.value)
2558
- }, [z(n.$slots, "default")], 2))], 2));
2559
- }
2560
- }), Kr = { class: "flex items-baseline gap-1" }, qr = {
2561
- key: 1,
2562
- class: "flex items-center gap-1"
2563
- }, Jr = /* @__PURE__ */ D({
2564
- name: "UStatistic",
2565
- __name: "statistic",
2566
- props: {
2567
- title: { default: void 0 },
2568
- value: {},
2569
- precision: { default: void 0 },
2570
- suffix: { default: void 0 },
2571
- trend: { default: void 0 },
2572
- change: { default: void 0 },
2573
- size: { default: "default" },
2574
- class: { default: void 0 }
2575
- },
2576
- setup(t) {
2577
- let n = t, r = {
2578
- sm: "text-xs",
2579
- default: "text-sm",
2580
- lg: "text-base"
2581
- }, i = {
2582
- sm: "text-2xl",
2583
- default: "text-3xl",
2584
- lg: "text-4xl"
2585
- }, a = {
2586
- sm: "text-xs",
2587
- default: "text-sm",
2588
- lg: "text-base"
2589
- }, o = {
2590
- up: "text-success",
2591
- down: "text-danger",
2592
- flat: "text-text-secondary"
2593
- }, s = {
2594
- up: "text-success",
2595
- down: "text-danger",
2596
- flat: "text-text-secondary"
2597
- }, c = {
2598
- up: me,
2599
- down: pe,
2600
- flat: K
2601
- }, l = b(() => e("flex flex-col gap-1", n.class)), u = b(() => e("font-medium text-text-secondary", r[n.size])), d = b(() => e("font-bold tabular-nums text-text-primary", i[n.size])), f = b(() => e("text-text-secondary", a[n.size])), p = b(() => e("text-text-primary", a[n.size])), m = b(() => n.trend ? o[n.trend] : ""), h = b(() => n.trend ? e("text-xs font-medium", s[n.trend]) : ""), g = b(() => n.size === "sm" ? 14 : n.size === "lg" ? 18 : 16), _ = b(() => n.trend ? c[n.trend] : null), v = b(() => typeof n.value == "string" ? n.value : new Intl.NumberFormat("zh-CN", {
2602
- minimumFractionDigits: n.precision ?? 0,
2603
- maximumFractionDigits: n.precision ?? 0
2604
- }).format(n.value));
2605
- return (e, n) => (F(), C("div", { class: M(l.value) }, [
2606
- t.title ? (F(), C("span", {
2607
- key: 0,
2608
- class: M(u.value)
2609
- }, V(t.title), 3)) : S("", !0),
2610
- w("div", Kr, [
2611
- e.$slots.prefix ? (F(), C("span", {
2612
- key: 0,
2613
- class: M(p.value)
2614
- }, [z(e.$slots, "prefix")], 2)) : S("", !0),
2615
- w("span", { class: M(d.value) }, V(v.value), 3),
2616
- e.$slots.suffix || t.suffix ? (F(), C("span", {
2617
- key: 1,
2618
- class: M(f.value)
2619
- }, [z(e.$slots, "suffix", {}, () => [T(V(t.suffix), 1)])], 2)) : S("", !0)
2620
- ]),
2621
- t.trend || t.change ? (F(), C("div", qr, [_.value ? (F(), x(B(_.value), {
2622
- key: 0,
2623
- size: g.value,
2624
- class: M(m.value)
2625
- }, null, 8, ["size", "class"])) : S("", !0), t.change && t.trend ? (F(), C("span", {
2626
- key: 1,
2627
- class: M(h.value)
2628
- }, V(t.change), 3)) : S("", !0)])) : S("", !0)
2629
- ], 2));
2630
- }
2631
- }), Yr = /* @__PURE__ */ ve({
2632
- UGAccordion: () => Ht,
2633
- UGAccordionContent: () => Vt,
2634
- UGAccordionItem: () => zt,
2635
- UGAccordionTrigger: () => Bt,
2636
- UGAlert: () => Bn,
2637
- UGAlertDescription: () => zn,
2638
- UGAlertTitle: () => Rn,
2639
- UGAvatar: () => Tn,
2640
- UGAvatarFallback: () => wn,
2641
- UGAvatarGroup: () => kn,
2642
- UGAvatarImage: () => Cn,
2643
- UGBadge: () => o,
2644
- UGBreadcrumb: () => Gn,
2645
- UGBreadcrumbItem: () => Hn,
2646
- UGBreadcrumbLink: () => Un,
2647
- UGBreadcrumbSeparator: () => Wn,
2648
- UGButton: () => t,
2649
- UGCard: () => n,
2650
- UGCardContent: () => l,
2651
- UGCardDescription: () => d,
2652
- UGCardFooter: () => r,
2653
- UGCardHeader: () => s,
2654
- UGCardTitle: () => p,
2655
- UGCheckbox: () => Qe,
2656
- UGContextMenu: () => un,
2657
- UGContextMenuContent: () => sn,
2658
- UGContextMenuItem: () => cn,
2659
- UGContextMenuSeparator: () => ln,
2660
- UGContextMenuTrigger: () => on,
2661
- UGDescriptions: () => Gr,
2662
- UGDescriptionsItem: () => Wr,
2663
- UGDialog: () => we,
2664
- UGDrawer: () => Pe,
2665
- UGDrawerClose: () => Ne,
2666
- UGDrawerContent: () => Oe,
2667
- UGDrawerDescription: () => je,
2668
- UGDrawerFooter: () => Me,
2669
- UGDrawerHeader: () => ke,
2670
- UGDrawerTitle: () => Ae,
2671
- UGDropdown: () => Xt,
2672
- UGDropdownContent: () => qt,
2673
- UGDropdownItem: () => Jt,
2674
- UGDropdownMenu: () => Xt,
2675
- UGDropdownSeparator: () => Yt,
2676
- UGDropdownTrigger: () => Kt,
2677
- UGEmptyState: () => br,
2678
- UGForm: () => Ot,
2679
- UGFormControl: () => Tt,
2680
- UGFormDescription: () => Et,
2681
- UGFormField: () => St,
2682
- UGFormItem: () => Ct,
2683
- UGFormLabel: () => wt,
2684
- UGFormMessage: () => Dt,
2685
- UGInput: () => a,
2686
- UGLabel: () => i,
2687
- UGModal: () => m,
2688
- UGNavigationMenu: () => bn,
2689
- UGNavigationMenuContent: () => yn,
2690
- UGNavigationMenuItem: () => gn,
2691
- UGNavigationMenuLink: () => _n,
2692
- UGNavigationMenuTrigger: () => vn,
2693
- UGNumberInput: () => vt,
2694
- UGOTPInput: () => bt,
2695
- UGPagination: () => Dr,
2696
- UGPopover: () => nn,
2697
- UGPopoverContent: () => tn,
2698
- UGPopoverTrigger: () => en,
2699
- UGProgress: () => sr,
2700
- UGRadio: () => st,
2701
- UGRadioGroup: () => ct,
2702
- UGSelect: () => zr,
2703
- UGSeparator: () => f,
2704
- UGSheet: () => mr,
2705
- UGSidebar: () => h,
2706
- UGSkeleton: () => ir,
2707
- UGSlider: () => pt,
2708
- UGSpinner: () => c,
2709
- UGStatistic: () => Jr,
2710
- UGSteps: () => Wt,
2711
- UGSwitch: () => Zn,
2712
- UGTable: () => Ve,
2713
- UGTableBody: () => Le,
2714
- UGTableCell: () => Be,
2715
- UGTableHead: () => ze,
2716
- UGTableHeader: () => Ie,
2717
- UGTableRow: () => Re,
2718
- UGTabs: () => Pt,
2719
- UGTabsContent: () => Nt,
2720
- UGTabsList: () => jt,
2721
- UGTabsTrigger: () => Mt,
2722
- UGTag: () => u,
2723
- UGTextarea: () => rr,
2724
- UGToaster: () => We,
2725
- UGTooltip: () => Fn,
2726
- UGTooltipContent: () => Pn,
2727
- UGTooltipTrigger: () => Nn
2728
- });
2729
- //#endregion
2730
- export { Mt as $, _n as A, Xt as B, kn as C, je as Ct, bn as D, we as Dt, Cn as E, Ae as Et, ln as F, Wt as G, Jt as H, on as I, zt as J, Ht as K, nn as L, un as M, sn as N, yn as O, cn as P, jt as Q, tn as R, Nn as S, Oe as St, wn as T, ke as Tt, Yt as U, qt as V, Kt as W, Pt as X, Bt as Y, Nt as Z, Bn as _, ze as _t, zr as a, wt as at, Fn as b, Pe as bt, mr as c, vt as ct, rr as d, st as dt, Ot as et, Zn as f, Qe as ft, Wn as g, Be as gt, Un as h, Le as ht, Wr as i, Ct as it, vn as j, gn as k, sr as l, pt as lt, Hn as m, Ve as mt, Jr as n, Et as nt, Dr as o, Dt as ot, Gn as p, We as pt, Vt as q, Gr as r, St as rt, br as s, bt as st, Yr as t, Tt as tt, ir as u, ct as ut, zn as v, Ie as vt, Tn as w, Me as wt, Pn as x, Ne as xt, Rn as y, Re as yt, en as z };
2731
-
2732
- //# sourceMappingURL=aliases-u3xep8jx.js.map