@comfyorg/design-system 1.1.0 → 1.2.0

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 (442) hide show
  1. package/README.md +89 -10
  2. package/dist/badge/Badge.vue.d.ts +49 -0
  3. package/dist/badge/Badge.vue.js +2 -0
  4. package/dist/badge/CreditBadge.vue.d.ts +7 -0
  5. package/dist/badge/CreditBadge.vue.js +35 -0
  6. package/dist/badge/badge.variants.d.ts +12 -0
  7. package/dist/button/Button.vue.d.ts +31 -0
  8. package/dist/button/Button.vue.js +2 -0
  9. package/dist/button-group/ButtonGroup.vue.d.ts +18 -0
  10. package/dist/button-group/ButtonGroup.vue.js +37 -0
  11. package/dist/button-group/IconGroup.vue.d.ts +16 -0
  12. package/dist/button-group/IconGroup.vue.js +15 -0
  13. package/dist/card/Card.vue.d.ts +19 -0
  14. package/dist/card/Card.vue.js +2 -0
  15. package/dist/card/CardFooter.vue.d.ts +17 -0
  16. package/dist/card/CardFooter.vue.js +2 -0
  17. package/dist/card/CardHeader.vue.d.ts +17 -0
  18. package/dist/card/CardHeader.vue.js +2 -0
  19. package/dist/card/CoachmarkCard.vue.d.ts +24 -0
  20. package/dist/card/CoachmarkCard.vue.js +57 -0
  21. package/dist/card/card.variants.d.ts +11 -0
  22. package/dist/chart/Chart.vue.d.ts +12 -0
  23. package/dist/chart/Chart.vue.js +180 -0
  24. package/dist/chart/useChart.d.ts +4 -0
  25. package/dist/checkbox/Checkbox.vue.d.ts +25 -0
  26. package/dist/checkbox/Checkbox.vue.js +49 -0
  27. package/dist/chip/TagRemoveButton.vue.d.ts +18 -0
  28. package/dist/chip/TagRemoveButton.vue.js +2 -0
  29. package/dist/common/CanvasBanner.vue.d.ts +23 -0
  30. package/dist/common/CanvasBanner.vue.js +23 -0
  31. package/dist/common/ContentDivider.vue.d.ts +7 -0
  32. package/dist/common/ContentDivider.vue.js +22 -0
  33. package/dist/common/CustomFormValue.vue.d.ts +6 -0
  34. package/dist/common/CustomFormValue.vue.js +28 -0
  35. package/dist/common/DotSpinner.vue.d.ts +7 -0
  36. package/dist/common/DotSpinner.vue.js +34 -0
  37. package/dist/common/EditableText.vue.d.ts +16 -0
  38. package/dist/common/EditableText.vue.js +73 -0
  39. package/dist/common/LoadingOverlay.vue.d.ts +18 -0
  40. package/dist/common/LoadingOverlay.vue.js +41 -0
  41. package/dist/common/MarkdownText.vue.d.ts +6 -0
  42. package/dist/common/MarkdownText.vue.js +93 -0
  43. package/dist/common/MarqueeLine.vue.d.ts +13 -0
  44. package/dist/common/MarqueeLine.vue.js +12 -0
  45. package/dist/common/OverlayIcon.vue.d.ts +13 -0
  46. package/dist/common/OverlayIcon.vue.js +2 -0
  47. package/dist/common/SanitizedHtml.vue.d.ts +8 -0
  48. package/dist/common/SanitizedHtml.vue.js +60 -0
  49. package/dist/common/TextDivider.vue.d.ts +8 -0
  50. package/dist/common/TextDivider.vue.js +36 -0
  51. package/dist/common/TextTicker.vue.d.ts +17 -0
  52. package/dist/common/TextTicker.vue.js +53 -0
  53. package/dist/common/TextTickerMultiLine.vue.d.ts +6 -0
  54. package/dist/common/TextTickerMultiLine.vue.js +54 -0
  55. package/dist/common/VerticalDivider.vue.d.ts +3 -0
  56. package/dist/common/VerticalDivider.vue.js +15 -0
  57. package/dist/common/VideoCompareSlider.vue.d.ts +24 -0
  58. package/dist/common/VideoCompareSlider.vue.js +141 -0
  59. package/dist/common/ViewportWidgetShell.vue.d.ts +27 -0
  60. package/dist/common/ViewportWidgetShell.vue.js +58 -0
  61. package/dist/common/VirtualGrid.vue.d.ts +38 -0
  62. package/dist/common/VirtualGrid.vue.js +107 -0
  63. package/dist/common/textTickerUtils.d.ts +1 -0
  64. package/dist/components.css +44 -0
  65. package/dist/composables/useAttrsClass.d.ts +12 -0
  66. package/dist/composables/useAttrsClass.js +18 -0
  67. package/dist/composables/usePopoverSizing.d.ts +12 -0
  68. package/dist/composables/usePopoverSizing.js +18 -0
  69. package/dist/confirm/ConfirmBody.vue.d.ts +8 -0
  70. package/dist/confirm/ConfirmBody.vue.js +27 -0
  71. package/dist/confirm/ConfirmHeader.vue.d.ts +7 -0
  72. package/dist/confirm/ConfirmHeader.vue.js +27 -0
  73. package/dist/content-card/CardBottom.vue.d.ts +16 -0
  74. package/dist/content-card/CardBottom.vue.js +19 -0
  75. package/dist/content-card/CardContainer.vue.d.ts +26 -0
  76. package/dist/content-card/CardContainer.vue.js +61 -0
  77. package/dist/content-card/CardTop.vue.d.ts +36 -0
  78. package/dist/content-card/CardTop.vue.js +72 -0
  79. package/dist/dialog/Dialog.vue.d.ts +21 -0
  80. package/dist/dialog/Dialog.vue.js +25 -0
  81. package/dist/dialog/DialogClose.vue.d.ts +13 -0
  82. package/dist/dialog/DialogClose.vue.js +24 -0
  83. package/dist/dialog/DialogContent.vue.d.ts +36 -0
  84. package/dist/dialog/DialogContent.vue.js +73 -0
  85. package/dist/dialog/DialogDescription.vue.d.ts +18 -0
  86. package/dist/dialog/DialogDescription.vue.js +33 -0
  87. package/dist/dialog/DialogFooter.vue.d.ts +17 -0
  88. package/dist/dialog/DialogFooter.vue.js +24 -0
  89. package/dist/dialog/DialogHeader.vue.d.ts +17 -0
  90. package/dist/dialog/DialogHeader.vue.js +24 -0
  91. package/dist/dialog/DialogMaximize.vue.d.ts +10 -0
  92. package/dist/dialog/DialogMaximize.vue.js +27 -0
  93. package/dist/dialog/DialogOverlay.vue.d.ts +8 -0
  94. package/dist/dialog/DialogOverlay.vue.js +35 -0
  95. package/dist/dialog/DialogPanel.vue.d.ts +18 -0
  96. package/dist/dialog/DialogPanel.vue.js +55 -0
  97. package/dist/dialog/DialogPortal.vue.d.ts +14 -0
  98. package/dist/dialog/DialogPortal.vue.js +38 -0
  99. package/dist/dialog/DialogTitle.vue.d.ts +18 -0
  100. package/dist/dialog/DialogTitle.vue.js +2 -0
  101. package/dist/dialog/dialog.variants.d.ts +16 -0
  102. package/dist/dialog/dialog.variants.js +39 -0
  103. package/dist/dialog/types.d.ts +6 -0
  104. package/dist/dialog/types.js +0 -0
  105. package/dist/field/Field.vue.d.ts +19 -0
  106. package/dist/field/Field.vue.js +42 -0
  107. package/dist/field/FieldDescription.vue.d.ts +17 -0
  108. package/dist/field/FieldDescription.vue.js +24 -0
  109. package/dist/field/FieldError.vue.d.ts +21 -0
  110. package/dist/field/FieldError.vue.js +39 -0
  111. package/dist/field/FieldGroup.vue.d.ts +17 -0
  112. package/dist/field/FieldGroup.vue.js +24 -0
  113. package/dist/field/FieldLabel.vue.d.ts +17 -0
  114. package/dist/field/FieldLabel.vue.js +28 -0
  115. package/dist/field/ModelInfoField.vue.d.ts +18 -0
  116. package/dist/field/ModelInfoField.vue.js +18 -0
  117. package/dist/field/field.variants.d.ts +11 -0
  118. package/dist/hover-card/HoverCard.vue.d.ts +18 -0
  119. package/dist/hover-card/HoverCard.vue.js +26 -0
  120. package/dist/hover-card/HoverCardContent.vue.d.ts +18 -0
  121. package/dist/hover-card/HoverCardContent.vue.js +68 -0
  122. package/dist/hover-card/HoverCardTrigger.vue.d.ts +14 -0
  123. package/dist/hover-card/HoverCardTrigger.vue.js +23 -0
  124. package/dist/icon/ComfyLogo.vue.d.ts +9 -0
  125. package/dist/icon/ComfyLogo.vue.js +33 -0
  126. package/dist/icon/PuzzleIcon.vue.d.ts +8 -0
  127. package/dist/icon/PuzzleIcon.vue.js +40 -0
  128. package/dist/icon/TinyChevronIcon.vue.d.ts +6 -0
  129. package/dist/icon/TinyChevronIcon.vue.js +31 -0
  130. package/dist/icon/VerifiedIcon.vue.d.ts +8 -0
  131. package/dist/icon/VerifiedIcon.vue.js +32 -0
  132. package/dist/input/Input.vue.d.ts +21 -0
  133. package/dist/input/Input.vue.js +2 -0
  134. package/dist/input/PasswordInput.vue.d.ts +18 -0
  135. package/dist/input/PasswordInput.vue.js +68 -0
  136. package/dist/input-group/InputGroup.vue.d.ts +17 -0
  137. package/dist/input-group/InputGroup.vue.js +2 -0
  138. package/dist/input-group/InputGroupAddon.vue.d.ts +19 -0
  139. package/dist/input-group/InputGroupAddon.vue.js +2 -0
  140. package/dist/input-group/InputGroupButton.vue.d.ts +21 -0
  141. package/dist/input-group/InputGroupButton.vue.js +2 -0
  142. package/dist/input-group/InputGroupInput.vue.d.ts +15 -0
  143. package/dist/input-group/InputGroupInput.vue.js +2 -0
  144. package/dist/input-group/inputGroup.variants.d.ts +21 -0
  145. package/dist/input-group/inputGroup.variants.js +22 -0
  146. package/dist/knob/Knob.vue.d.ts +19 -0
  147. package/dist/knob/Knob.vue.js +124 -0
  148. package/dist/label/Label.vue.d.ts +18 -0
  149. package/dist/label/Label.vue.js +2 -0
  150. package/dist/media/AudioPreview.vue.d.ts +6 -0
  151. package/dist/media/AudioPreview.vue.js +28 -0
  152. package/dist/media/MediaTitle.vue.d.ts +6 -0
  153. package/dist/media/MediaTitle.vue.js +19 -0
  154. package/dist/media/VideoPlayOverlay.vue.d.ts +8 -0
  155. package/dist/media/VideoPlayOverlay.vue.js +28 -0
  156. package/dist/media/VideoPreview.vue.d.ts +7 -0
  157. package/dist/media/VideoPreview.vue.js +32 -0
  158. package/dist/media/ZoomPane.vue.d.ts +17 -0
  159. package/dist/media/ZoomPane.vue.js +62 -0
  160. package/dist/menu/ContextMenu.vue.d.ts +31 -0
  161. package/dist/menu/ContextMenu.vue.js +52 -0
  162. package/dist/menu/ContextMenuContent.vue.d.ts +32 -0
  163. package/dist/menu/ContextMenuContent.vue.js +2 -0
  164. package/dist/menu/Menu.vue.d.ts +41 -0
  165. package/dist/menu/Menu.vue.js +79 -0
  166. package/dist/menu/MenuAction.vue.d.ts +26 -0
  167. package/dist/menu/MenuAction.vue.js +2 -0
  168. package/dist/menu/MenuContent.vue.d.ts +35 -0
  169. package/dist/menu/MenuContent.vue.js +2 -0
  170. package/dist/menu/MenuItem.vue.d.ts +22 -0
  171. package/dist/menu/MenuItem.vue.js +35 -0
  172. package/dist/menu/MenuItemContent.vue.d.ts +8 -0
  173. package/dist/menu/MenuItemContent.vue.js +2 -0
  174. package/dist/menu/MenuItems.vue.d.ts +32 -0
  175. package/dist/menu/MenuItems.vue.js +2 -0
  176. package/dist/menu/MenuRadioGroup.vue.d.ts +26 -0
  177. package/dist/menu/MenuRadioGroup.vue.js +2 -0
  178. package/dist/menu/MenuRadioItem.vue.d.ts +22 -0
  179. package/dist/menu/MenuRadioItem.vue.js +2 -0
  180. package/dist/menu/MenuSeparator.vue.d.ts +8 -0
  181. package/dist/menu/MenuSeparator.vue.js +2 -0
  182. package/dist/menu/MenuSub.vue.d.ts +20 -0
  183. package/dist/menu/MenuSub.vue.js +2 -0
  184. package/dist/menu/MenuSubContent.vue.d.ts +36 -0
  185. package/dist/menu/MenuSubContent.vue.js +2 -0
  186. package/dist/menu/MenuSubTrigger.vue.d.ts +18 -0
  187. package/dist/menu/MenuSubTrigger.vue.js +2 -0
  188. package/dist/menu/MenuSubmenu.vue.d.ts +21 -0
  189. package/dist/menu/MenuSubmenu.vue.js +2 -0
  190. package/dist/menu/menuAnchor.d.ts +4 -0
  191. package/dist/menu/menuAnchor.js +15 -0
  192. package/dist/menu/menuStyles.d.ts +4 -0
  193. package/dist/menu/menuStyles.js +7 -0
  194. package/dist/menu/mouseDownUtil.d.ts +3 -0
  195. package/dist/menu/types.d.ts +69 -0
  196. package/dist/menu/types.js +0 -0
  197. package/dist/menu/usePointMenu.d.ts +19 -0
  198. package/dist/menu/usePointMenu.js +56 -0
  199. package/dist/message/Message.vue.d.ts +50 -0
  200. package/dist/message/Message.vue.js +75 -0
  201. package/dist/message/message.variants.d.ts +11 -0
  202. package/dist/message/message.variants.js +15 -0
  203. package/dist/multi-select/MultiSelect.vue.d.ts +170 -0
  204. package/dist/multi-select/MultiSelect.vue.js +137 -0
  205. package/dist/multi-select/MultiSelectContent.vue.d.ts +32 -0
  206. package/dist/multi-select/MultiSelectContent.vue.js +2 -0
  207. package/dist/multi-select/MultiSelectTrigger.vue.d.ts +24 -0
  208. package/dist/multi-select/MultiSelectTrigger.vue.js +2 -0
  209. package/dist/multi-select/types.d.ts +35 -0
  210. package/dist/multi-select/types.js +0 -0
  211. package/dist/navigation/NavTitle.vue.d.ts +12 -0
  212. package/dist/navigation/NavTitle.vue.js +42 -0
  213. package/dist/navigation/SidebarTopArea.vue.d.ts +15 -0
  214. package/dist/navigation/SidebarTopArea.vue.js +16 -0
  215. package/dist/number-field/NumberField.vue.d.ts +26 -0
  216. package/dist/number-field/NumberField.vue.js +75 -0
  217. package/dist/number-field/NumberFieldDecrement.vue.d.ts +18 -0
  218. package/dist/number-field/NumberFieldDecrement.vue.js +35 -0
  219. package/dist/number-field/NumberFieldIncrement.vue.d.ts +18 -0
  220. package/dist/number-field/NumberFieldIncrement.vue.js +35 -0
  221. package/dist/number-field/NumberFieldInput.vue.d.ts +7 -0
  222. package/dist/number-field/NumberFieldInput.vue.js +25 -0
  223. package/dist/number-field/PropertyNumberField.vue.d.ts +14 -0
  224. package/dist/number-field/PropertyNumberField.vue.js +56 -0
  225. package/dist/pagination/Pagination.vue.d.ts +22 -0
  226. package/dist/pagination/Pagination.vue.js +140 -0
  227. package/dist/popover/PopoverContent.vue.d.ts +33 -0
  228. package/dist/popover/PopoverContent.vue.js +91 -0
  229. package/dist/popover/usePopoverViewportDismiss.d.ts +2 -0
  230. package/dist/popover/usePopoverViewportDismiss.js +13 -0
  231. package/dist/radio-group/RadioGroup.vue.d.ts +22 -0
  232. package/dist/radio-group/RadioGroup.vue.js +45 -0
  233. package/dist/radio-group/RadioGroupItem.vue.d.ts +22 -0
  234. package/dist/radio-group/RadioGroupItem.vue.js +42 -0
  235. package/dist/search-input/AsyncSearchInput.vue.d.ts +27 -0
  236. package/dist/search-input/AsyncSearchInput.vue.js +104 -0
  237. package/dist/search-input/SearchAutocomplete.vue.d.ts +53 -0
  238. package/dist/search-input/SearchAutocomplete.vue.js +234 -0
  239. package/dist/search-input/SearchInput.vue.d.ts +46 -0
  240. package/dist/search-input/SearchInput.vue.js +127 -0
  241. package/dist/search-input/searchInput.variants.d.ts +45 -0
  242. package/dist/select/DropdownControl.vue.d.ts +16 -0
  243. package/dist/select/DropdownControl.vue.js +48 -0
  244. package/dist/select/Select.vue.d.ts +21 -0
  245. package/dist/select/Select.vue.js +2 -0
  246. package/dist/select/SelectContent.vue.d.ts +29 -0
  247. package/dist/select/SelectContent.vue.js +2 -0
  248. package/dist/select/SelectItem.vue.d.ts +18 -0
  249. package/dist/select/SelectItem.vue.js +2 -0
  250. package/dist/select/SelectScrollDownButton.vue.d.ts +18 -0
  251. package/dist/select/SelectScrollDownButton.vue.js +2 -0
  252. package/dist/select/SelectScrollUpButton.vue.d.ts +18 -0
  253. package/dist/select/SelectScrollUpButton.vue.js +2 -0
  254. package/dist/select/SelectTrigger.vue.d.ts +22 -0
  255. package/dist/select/SelectTrigger.vue.js +2 -0
  256. package/dist/select/SelectValue.vue.d.ts +14 -0
  257. package/dist/select/SelectValue.vue.js +2 -0
  258. package/dist/select/types.d.ts +4 -0
  259. package/dist/select/types.js +0 -0
  260. package/dist/select/useSelectSearch.d.ts +3 -0
  261. package/dist/select/useSelectSearch.js +15 -0
  262. package/dist/shared/Badge-D3uWa3yk.js +92 -0
  263. package/dist/shared/Button-CilmsOkY.js +141 -0
  264. package/dist/shared/Card-l7baUdn0.js +34 -0
  265. package/dist/shared/CardFooter-BM6EmVi7.js +21 -0
  266. package/dist/shared/CardHeader-B5To28Jp.js +21 -0
  267. package/dist/shared/ContextMenuContent-CNQHJQ81.js +64 -0
  268. package/dist/shared/DialogTitle-CfkkTGuU.js +43 -0
  269. package/dist/shared/Input-39RLwDr2.js +38 -0
  270. package/dist/shared/InputGroup-kjQKkhyB.js +25 -0
  271. package/dist/shared/InputGroupAddon-DLDRT0CQ.js +38 -0
  272. package/dist/shared/InputGroupButton-BoEp2apg.js +41 -0
  273. package/dist/shared/InputGroupInput-E2MlEVUU.js +32 -0
  274. package/dist/shared/Label-Cx_lFofI.js +36 -0
  275. package/dist/shared/MenuAction-BdghJ23k.js +124 -0
  276. package/dist/shared/MenuContent-ChqlM3xA.js +80 -0
  277. package/dist/shared/MenuItemContent--dPNoBmU.js +69 -0
  278. package/dist/shared/MenuItems-BJKetPV-.js +69 -0
  279. package/dist/shared/MenuRadioGroup-Bpjt9sHI.js +65 -0
  280. package/dist/shared/MenuRadioItem-h7hh_RGU.js +36 -0
  281. package/dist/shared/MenuSeparator-Dm6CkPqB.js +28 -0
  282. package/dist/shared/MenuSub-Dbnj2w-X.js +23 -0
  283. package/dist/shared/MenuSubContent-M-g3fllh.js +69 -0
  284. package/dist/shared/MenuSubTrigger-D6-3s2NL.js +35 -0
  285. package/dist/shared/MenuSubmenu-QHWMyfKF.js +43 -0
  286. package/dist/shared/MultiSelectContent-c1D5avjh.js +162 -0
  287. package/dist/shared/MultiSelectTrigger-lmuXqETa.js +52 -0
  288. package/dist/shared/OverlayIcon-DntJI-mm.js +45 -0
  289. package/dist/shared/SearchableSingleSelect-Dnti1kqJ.js +184 -0
  290. package/dist/shared/Select-CP3OZjtL.js +33 -0
  291. package/dist/shared/SelectContent-C8aNlcFf.js +91 -0
  292. package/dist/shared/SelectItem-tU4CIa5J.js +42 -0
  293. package/dist/shared/SelectScrollDownButton-Dvig5MVc.js +30 -0
  294. package/dist/shared/SelectScrollUpButton-lv-npT6v.js +30 -0
  295. package/dist/shared/SelectTrigger-CCDiZW91.js +47 -0
  296. package/dist/shared/SelectValue-DFZFSiQp.js +23 -0
  297. package/dist/shared/Switch-DsCzHpDU.js +63 -0
  298. package/dist/shared/TableHead-OxGist4m.js +24 -0
  299. package/dist/shared/TagRemoveButton-BiCdscIC.js +38 -0
  300. package/dist/shared/TextTooltip-ClHQl84h.js +29 -0
  301. package/dist/shared/Tooltip-DbXyHv20.js +34 -0
  302. package/dist/shared/TooltipContent-Bju-U7gc.js +91 -0
  303. package/dist/shared/TooltipTrigger-CVwISmWo.js +65 -0
  304. package/dist/shared/_plugin-vue_export-helper-BOaGB7Aw.js +8 -0
  305. package/dist/shared/searchInput.variants-NOge_52E.js +47 -0
  306. package/dist/shared/select.variants-BPn5Z7N1.js +40 -0
  307. package/dist/shared/src-CnJ6AzLP.js +12 -0
  308. package/dist/shared/tabKeys-BISOrxWu.js +4 -0
  309. package/dist/shared/tabs.variants-XUREdHry.js +23 -0
  310. package/dist/shared/tag.variants-CCqCn8Jc.js +34 -0
  311. package/dist/shared/tagsInputContext-QXu7RrG5.js +5 -0
  312. package/dist/shared/toggleGroup.variants-CvjZDHMw.js +39 -0
  313. package/dist/shared/tooltipContext-BL5JtM0i.js +4 -0
  314. package/dist/single-select/SearchableSingleSelect.vue.d.ts +39 -0
  315. package/dist/single-select/SearchableSingleSelect.vue.js +2 -0
  316. package/dist/single-select/SingleSelect.vue.d.ts +38 -0
  317. package/dist/single-select/SingleSelect.vue.js +187 -0
  318. package/dist/single-select/types.d.ts +25 -0
  319. package/dist/single-select/types.js +0 -0
  320. package/dist/skeleton/Skeleton.vue.d.ts +7 -0
  321. package/dist/skeleton/Skeleton.vue.js +24 -0
  322. package/dist/slider/Slider.vue.d.ts +16 -0
  323. package/dist/slider/Slider.vue.js +88 -0
  324. package/dist/spinner/Spinner.vue.d.ts +7 -0
  325. package/dist/spinner/Spinner.vue.js +41 -0
  326. package/dist/splitter/SplitterGroup.vue.d.ts +23 -0
  327. package/dist/splitter/SplitterGroup.vue.js +40 -0
  328. package/dist/splitter/SplitterPanel.vue.d.ts +26 -0
  329. package/dist/splitter/SplitterPanel.vue.js +45 -0
  330. package/dist/splitter/SplitterResizeHandle.vue.d.ts +22 -0
  331. package/dist/splitter/SplitterResizeHandle.vue.js +37 -0
  332. package/dist/switch/Switch.vue.d.ts +17 -0
  333. package/dist/switch/Switch.vue.js +2 -0
  334. package/dist/tab/Tab.vue.d.ts +24 -0
  335. package/dist/tab/Tab.vue.js +76 -0
  336. package/dist/tab/TabList.vue.d.ts +26 -0
  337. package/dist/tab/TabList.vue.js +31 -0
  338. package/dist/tab/TabPanel.vue.d.ts +23 -0
  339. package/dist/tab/TabPanel.vue.js +28 -0
  340. package/dist/tab/tab.variants.d.ts +9 -0
  341. package/dist/tab/tabKeys.d.ts +7 -0
  342. package/dist/table/Table.vue.d.ts +17 -0
  343. package/dist/table/Table.vue.js +23 -0
  344. package/dist/table/TableBody.vue.d.ts +17 -0
  345. package/dist/table/TableBody.vue.js +21 -0
  346. package/dist/table/TableCell.vue.d.ts +17 -0
  347. package/dist/table/TableCell.vue.js +21 -0
  348. package/dist/table/TableHead.vue.d.ts +17 -0
  349. package/dist/table/TableHead.vue.js +2 -0
  350. package/dist/table/TableHeader.vue.d.ts +17 -0
  351. package/dist/table/TableHeader.vue.js +21 -0
  352. package/dist/table/TableRow.vue.d.ts +17 -0
  353. package/dist/table/TableRow.vue.js +21 -0
  354. package/dist/table/TableSortHead.vue.d.ts +26 -0
  355. package/dist/table/TableSortHead.vue.js +47 -0
  356. package/dist/table/tableUtils.d.ts +3 -0
  357. package/dist/table/tableUtils.js +19 -0
  358. package/dist/tabs/Tabs.vue.d.ts +22 -0
  359. package/dist/tabs/Tabs.vue.js +43 -0
  360. package/dist/tabs/TabsContent.vue.d.ts +18 -0
  361. package/dist/tabs/TabsContent.vue.js +37 -0
  362. package/dist/tabs/TabsList.vue.d.ts +20 -0
  363. package/dist/tabs/TabsList.vue.js +38 -0
  364. package/dist/tabs/TabsTrigger.vue.d.ts +20 -0
  365. package/dist/tabs/TabsTrigger.vue.js +39 -0
  366. package/dist/tabs/tabs.variants.d.ts +21 -0
  367. package/dist/tags-input/TagsInput.vue.d.ts +32 -0
  368. package/dist/tags-input/TagsInput.vue.js +98 -0
  369. package/dist/tags-input/TagsInputInput.vue.d.ts +9 -0
  370. package/dist/tags-input/TagsInputInput.vue.js +56 -0
  371. package/dist/tags-input/TagsInputItem.vue.d.ts +18 -0
  372. package/dist/tags-input/TagsInputItem.vue.js +34 -0
  373. package/dist/tags-input/TagsInputItemDelete.vue.d.ts +18 -0
  374. package/dist/tags-input/TagsInputItemDelete.vue.js +35 -0
  375. package/dist/tags-input/TagsInputItemText.vue.d.ts +8 -0
  376. package/dist/tags-input/TagsInputItemText.vue.js +28 -0
  377. package/dist/tags-input/tagsInputContext.d.ts +4 -0
  378. package/dist/textarea/Textarea.vue.d.ts +17 -0
  379. package/dist/textarea/Textarea.vue.js +33 -0
  380. package/dist/toast/ToastClose.vue.d.ts +8 -0
  381. package/dist/toast/ToastClose.vue.js +42 -0
  382. package/dist/toast/ToastDescription.vue.d.ts +18 -0
  383. package/dist/toast/ToastDescription.vue.js +31 -0
  384. package/dist/toast/ToastDock.vue.d.ts +13 -0
  385. package/dist/toast/ToastDock.vue.js +29 -0
  386. package/dist/toast/ToastPanel.vue.d.ts +30 -0
  387. package/dist/toast/ToastPanel.vue.js +47 -0
  388. package/dist/toast/ToastRoot.vue.d.ts +100 -0
  389. package/dist/toast/ToastRoot.vue.js +55 -0
  390. package/dist/toast/ToastTitle.vue.d.ts +18 -0
  391. package/dist/toast/ToastTitle.vue.js +31 -0
  392. package/dist/toast/ToastViewport.vue.d.ts +9 -0
  393. package/dist/toast/ToastViewport.vue.js +33 -0
  394. package/dist/toggle-group/ToggleGroup.vue.d.ts +25 -0
  395. package/dist/toggle-group/ToggleGroup.vue.js +61 -0
  396. package/dist/toggle-group/ToggleGroupItem.vue.d.ts +21 -0
  397. package/dist/toggle-group/ToggleGroupItem.vue.js +45 -0
  398. package/dist/toggle-group/toggleGroup.variants.d.ts +24 -0
  399. package/dist/tooltip/TextTooltip.vue.d.ts +20 -0
  400. package/dist/tooltip/TextTooltip.vue.js +2 -0
  401. package/dist/tooltip/Tooltip.vue.d.ts +23 -0
  402. package/dist/tooltip/Tooltip.vue.js +2 -0
  403. package/dist/tooltip/TooltipContent.vue.d.ts +24 -0
  404. package/dist/tooltip/TooltipContent.vue.js +2 -0
  405. package/dist/tooltip/TooltipProvider.vue.d.ts +15 -0
  406. package/dist/tooltip/TooltipProvider.vue.js +39 -0
  407. package/dist/tooltip/TooltipTrigger.vue.d.ts +14 -0
  408. package/dist/tooltip/TooltipTrigger.vue.js +2 -0
  409. package/dist/tooltip/tooltipConfig.d.ts +5 -0
  410. package/dist/tooltip/tooltipConfig.js +8 -0
  411. package/dist/tooltip/tooltipContext.d.ts +2 -0
  412. package/dist/transition/TransitionCollapse.vue.d.ts +21 -0
  413. package/dist/transition/TransitionCollapse.vue.js +110 -0
  414. package/dist/tree/Tree.vue.d.ts +32 -0
  415. package/dist/tree/Tree.vue.js +55 -0
  416. package/dist/tree/TreeItem.vue.d.ts +29 -0
  417. package/dist/tree/TreeItem.vue.js +82 -0
  418. package/dist/tree/treeStyles.d.ts +4 -0
  419. package/dist/tree/treeStyles.js +7 -0
  420. package/dist-types/button.variants.d.ts +16 -0
  421. package/dist-types/select.variants.d.ts +24 -0
  422. package/dist-types/tag.variants.d.ts +21 -0
  423. package/dist-types/workspaceAvatar.d.ts +5 -0
  424. package/package.json +165 -7
  425. package/src/button.variants.ts +84 -0
  426. package/src/css/_deprecated-aliases.css +12 -0
  427. package/src/css/_legacy-palette.css +33 -0
  428. package/src/css/_legacy-ui.css +418 -0
  429. package/src/css/_markdown.css +227 -0
  430. package/src/css/_mask-editor.css +180 -0
  431. package/src/css/_palette.css +40 -4
  432. package/src/css/base.css +0 -6
  433. package/src/css/iconSizing.test.ts +80 -0
  434. package/src/css/iconifyDynamicPlugin.ts +15 -6
  435. package/src/css/icons.test.ts +17 -0
  436. package/src/css/lucideStrokePlugin.js +5 -6
  437. package/src/css/style.css +108 -1698
  438. package/src/icons/README.md +33 -26
  439. package/src/icons/astroid-filled.svg +3 -0
  440. package/src/icons/claude.svg +1 -1
  441. package/src/select.variants.ts +53 -0
  442. package/src/tag.variants.ts +38 -0
@@ -0,0 +1,180 @@
1
+ import { t as cn } from "../shared/src-CnJ6AzLP.js";
2
+ import { createElementBlock, createElementVNode, defineComponent, normalizeClass, onBeforeUnmount, onMounted, openBlock, toRaw, toRef, unref, useTemplateRef, watch } from "vue";
3
+ import { BarController, BarElement, CategoryScale, Chart, Colors, Filler, Legend, LineController, LineElement, LinearScale, PointElement, Tooltip } from "chart.js";
4
+ //#region src/components/chart/useChart.ts
5
+ Chart.register(BarController, BarElement, CategoryScale, Colors, Filler, Legend, LinearScale, LineController, LineElement, PointElement, Tooltip);
6
+ function getCssVar(name) {
7
+ return getComputedStyle(document.documentElement).getPropertyValue(name).trim();
8
+ }
9
+ function getDefaultOptions(type) {
10
+ const foreground = getCssVar("--color-foreground") || "#ffffff";
11
+ const muted = getCssVar("--color-muted-foreground") || "#8a8a8a";
12
+ return {
13
+ responsive: true,
14
+ maintainAspectRatio: false,
15
+ interaction: {
16
+ mode: "index",
17
+ intersect: false
18
+ },
19
+ plugins: {
20
+ legend: {
21
+ align: "start",
22
+ labels: {
23
+ color: foreground,
24
+ usePointStyle: true,
25
+ pointStyle: "circle",
26
+ boxWidth: 8,
27
+ boxHeight: 8,
28
+ padding: 16,
29
+ font: {
30
+ family: "Inter",
31
+ size: 11
32
+ },
33
+ generateLabels(chart) {
34
+ return chart.data.datasets.map((dataset, i) => {
35
+ const color = dataset.borderColor ?? dataset.backgroundColor ?? "#888";
36
+ return {
37
+ text: dataset.label ?? "",
38
+ fillStyle: color,
39
+ strokeStyle: color,
40
+ lineWidth: 0,
41
+ pointStyle: "circle",
42
+ hidden: !chart.isDatasetVisible(i),
43
+ datasetIndex: i
44
+ };
45
+ });
46
+ }
47
+ }
48
+ },
49
+ tooltip: { enabled: true }
50
+ },
51
+ elements: { point: {
52
+ radius: 0,
53
+ hoverRadius: 4
54
+ } },
55
+ scales: {
56
+ x: {
57
+ ticks: {
58
+ color: muted,
59
+ font: {
60
+ family: "Inter",
61
+ size: 11
62
+ },
63
+ padding: 8
64
+ },
65
+ grid: {
66
+ display: true,
67
+ color: muted + "33",
68
+ drawTicks: false
69
+ },
70
+ border: {
71
+ display: true,
72
+ color: muted
73
+ }
74
+ },
75
+ y: {
76
+ ticks: {
77
+ color: muted,
78
+ font: {
79
+ family: "Inter",
80
+ size: 11
81
+ },
82
+ padding: 4
83
+ },
84
+ grid: {
85
+ display: false,
86
+ drawTicks: false
87
+ },
88
+ border: {
89
+ display: true,
90
+ color: muted
91
+ }
92
+ }
93
+ },
94
+ ...type === "bar" && { datasets: { bar: {
95
+ borderRadius: {
96
+ topLeft: 4,
97
+ topRight: 4
98
+ },
99
+ borderSkipped: false,
100
+ barPercentage: .6,
101
+ categoryPercentage: .8
102
+ } } }
103
+ };
104
+ }
105
+ function useChart(canvasRef, type, data) {
106
+ let chart;
107
+ function copyData() {
108
+ const { datasets, labels, ...rest } = toRaw(data.value);
109
+ return {
110
+ ...rest,
111
+ labels: labels && [...labels],
112
+ datasets: datasets.map((dataset) => ({
113
+ ...dataset,
114
+ data: Array.isArray(dataset.data) ? [...dataset.data] : dataset.data
115
+ }))
116
+ };
117
+ }
118
+ function createChart() {
119
+ if (!canvasRef.value) return;
120
+ chart?.destroy();
121
+ chart = new Chart(canvasRef.value, {
122
+ type: type.value,
123
+ data: copyData(),
124
+ options: getDefaultOptions(type.value)
125
+ });
126
+ }
127
+ onMounted(createChart);
128
+ watch(type, createChart);
129
+ watch(data, () => {
130
+ if (!chart) return;
131
+ const next = copyData();
132
+ const previousCount = chart.data.datasets.length;
133
+ for (const [index, dataset] of next.datasets.entries()) {
134
+ if (index >= previousCount) break;
135
+ const { hidden } = chart.getDatasetMeta(index);
136
+ if (typeof hidden === "boolean") dataset.hidden = hidden;
137
+ }
138
+ chart.data = next;
139
+ chart.update();
140
+ }, { deep: true });
141
+ onBeforeUnmount(() => {
142
+ chart?.destroy();
143
+ chart = void 0;
144
+ });
145
+ }
146
+ //#endregion
147
+ //#region src/components/chart/Chart.vue?vue&type=script&setup=true&lang.ts
148
+ var _hoisted_1 = { class: "relative" };
149
+ var _hoisted_2 = ["aria-label"];
150
+ //#endregion
151
+ //#region src/components/chart/Chart.vue
152
+ var Chart_default = /* @__PURE__ */ defineComponent({
153
+ __name: "Chart",
154
+ props: {
155
+ data: {},
156
+ label: {},
157
+ type: {},
158
+ class: { type: [
159
+ Boolean,
160
+ null,
161
+ String,
162
+ Object,
163
+ Array
164
+ ] }
165
+ },
166
+ setup(__props) {
167
+ const canvasRef = useTemplateRef("canvasRef");
168
+ useChart(canvasRef, toRef(() => __props.type), toRef(() => __props.data));
169
+ return (_ctx, _cache) => {
170
+ return openBlock(), createElementBlock("div", { class: normalizeClass(unref(cn)("rounded-lg bg-secondary p-6", __props.class)) }, [createElementVNode("div", _hoisted_1, [createElementVNode("canvas", {
171
+ ref_key: "canvasRef",
172
+ ref: canvasRef,
173
+ "aria-label": __props.label,
174
+ role: "img"
175
+ }, null, 8, _hoisted_2)])], 2);
176
+ };
177
+ }
178
+ });
179
+ //#endregion
180
+ export { Chart_default as default };
@@ -0,0 +1,4 @@
1
+ import { ChartData } from 'chart.js';
2
+ import { Ref } from 'vue';
3
+ export type SupportedChartType = 'bar' | 'line';
4
+ export declare function useChart(canvasRef: Readonly<Ref<HTMLCanvasElement | null>>, type: Readonly<Ref<SupportedChartType>>, data: Readonly<Ref<ChartData>>): void;
@@ -0,0 +1,25 @@
1
+ import { CheckboxRootProps } from 'reka-ui';
2
+ import { HTMLAttributes } from 'vue';
3
+ type __VLS_Props = CheckboxRootProps & {
4
+ class?: HTMLAttributes['class'];
5
+ };
6
+ declare var __VLS_14: {
7
+ modelValue: boolean | "indeterminate";
8
+ state: import('reka-ui').CheckboxCheckedState;
9
+ };
10
+ type __VLS_Slots = {} & {
11
+ default?: (props: typeof __VLS_14) => any;
12
+ };
13
+ declare const __VLS_base: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
14
+ "update:modelValue": (value: boolean | "indeterminate") => any;
15
+ }, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
16
+ "onUpdate:modelValue"?: ((value: boolean | "indeterminate") => any) | undefined;
17
+ }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
18
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
19
+ declare const _default: typeof __VLS_export;
20
+ export default _default;
21
+ type __VLS_WithSlots<T, S> = T & {
22
+ new (): {
23
+ $slots: S;
24
+ };
25
+ };
@@ -0,0 +1,49 @@
1
+ import { t as cn } from "../shared/src-CnJ6AzLP.js";
2
+ import { createBlock, createElementVNode, createVNode, defineComponent, guardReactiveProps, mergeProps, normalizeClass, normalizeProps, openBlock, renderSlot, unref, withCtx } from "vue";
3
+ import { CheckboxIndicator, CheckboxRoot, useForwardPropsEmits } from "reka-ui";
4
+ import { reactiveOmit } from "@vueuse/core";
5
+ //#endregion
6
+ //#region src/components/checkbox/Checkbox.vue
7
+ var Checkbox_default = /* @__PURE__ */ defineComponent({
8
+ __name: "Checkbox",
9
+ props: {
10
+ defaultValue: {},
11
+ modelValue: {},
12
+ disabled: { type: Boolean },
13
+ value: {},
14
+ id: {},
15
+ trueValue: {},
16
+ falseValue: {},
17
+ asChild: { type: Boolean },
18
+ as: {},
19
+ name: {},
20
+ required: { type: Boolean },
21
+ class: { type: [
22
+ Boolean,
23
+ null,
24
+ String,
25
+ Object,
26
+ Array
27
+ ] }
28
+ },
29
+ emits: ["update:modelValue"],
30
+ setup(__props, { emit: __emit }) {
31
+ const props = __props;
32
+ const emits = __emit;
33
+ const forwarded = useForwardPropsEmits(reactiveOmit(props, "class"), emits);
34
+ return (_ctx, _cache) => {
35
+ return openBlock(), createBlock(unref(CheckboxRoot), mergeProps(unref(forwarded), {
36
+ "data-slot": "checkbox",
37
+ class: unref(cn)("inline-flex size-4 shrink-0 cursor-pointer items-center justify-center rounded-sm border bg-transparent text-background transition-colors outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:border-primary data-[state=checked]:bg-primary data-[state=indeterminate]:border-primary data-[state=indeterminate]:bg-primary", props.class)
38
+ }), {
39
+ default: withCtx((slotProps) => [createVNode(unref(CheckboxIndicator), { class: "flex items-center justify-center" }, {
40
+ default: withCtx(() => [renderSlot(_ctx.$slots, "default", normalizeProps(guardReactiveProps(slotProps)), () => [createElementVNode("i", { class: normalizeClass(unref(cn)("size-3", slotProps.state === "indeterminate" ? "icon-[lucide--minus]" : "icon-[lucide--check]")) }, null, 2)])]),
41
+ _: 2
42
+ }, 1024)]),
43
+ _: 3
44
+ }, 16, ["class"]);
45
+ };
46
+ }
47
+ });
48
+ //#endregion
49
+ export { Checkbox_default as default };
@@ -0,0 +1,18 @@
1
+ import { HTMLAttributes } from 'vue';
2
+ type __VLS_Props = {
3
+ tooltip?: string;
4
+ class?: HTMLAttributes['class'];
5
+ };
6
+ declare var __VLS_8: {};
7
+ type __VLS_Slots = {} & {
8
+ default?: (props: typeof __VLS_8) => any;
9
+ };
10
+ declare const __VLS_base: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
11
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
12
+ declare const _default: typeof __VLS_export;
13
+ export default _default;
14
+ type __VLS_WithSlots<T, S> = T & {
15
+ new (): {
16
+ $slots: S;
17
+ };
18
+ };
@@ -0,0 +1,2 @@
1
+ import { t as TagRemoveButton_default } from "../shared/TagRemoveButton-BiCdscIC.js";
2
+ export { TagRemoveButton_default as default };
@@ -0,0 +1,23 @@
1
+ type __VLS_Props = {
2
+ /** Leading-edge colour, e.g. `border-l-success`. */
3
+ accent: string;
4
+ };
5
+ declare var __VLS_1: {}, __VLS_3: {}, __VLS_5: {}, __VLS_7: {};
6
+ type __VLS_Slots = {} & {
7
+ icon?: (props: typeof __VLS_1) => any;
8
+ } & {
9
+ title?: (props: typeof __VLS_3) => any;
10
+ } & {
11
+ description?: (props: typeof __VLS_5) => any;
12
+ } & {
13
+ actions?: (props: typeof __VLS_7) => any;
14
+ };
15
+ declare const __VLS_base: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
16
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
17
+ declare const _default: typeof __VLS_export;
18
+ export default _default;
19
+ type __VLS_WithSlots<T, S> = T & {
20
+ new (): {
21
+ $slots: S;
22
+ };
23
+ };
@@ -0,0 +1,23 @@
1
+ import { t as cn } from "../shared/src-CnJ6AzLP.js";
2
+ import { createCommentVNode, createElementBlock, createElementVNode, defineComponent, normalizeClass, openBlock, renderSlot, unref } from "vue";
3
+ //#region src/components/common/CanvasBanner.vue?vue&type=script&setup=true&lang.ts
4
+ var _hoisted_1 = { class: "flex min-w-0 items-center gap-2" };
5
+ var _hoisted_2 = { class: "flex min-w-0 flex-col text-sm wrap-break-word" };
6
+ var _hoisted_3 = { class: "font-medium text-foreground" };
7
+ var _hoisted_4 = {
8
+ key: 0,
9
+ class: "text-muted-foreground"
10
+ };
11
+ //#endregion
12
+ //#region src/components/common/CanvasBanner.vue
13
+ var CanvasBanner_default = /* @__PURE__ */ defineComponent({
14
+ __name: "CanvasBanner",
15
+ props: { accent: {} },
16
+ setup(__props) {
17
+ return (_ctx, _cache) => {
18
+ return openBlock(), createElementBlock("div", { class: normalizeClass(unref(cn)("pointer-events-auto relative flex items-center gap-12 rounded-lg border border-l-4 bg-background p-4 shadow-md", __props.accent)) }, [createElementVNode("div", _hoisted_1, [renderSlot(_ctx.$slots, "icon"), createElementVNode("div", _hoisted_2, [createElementVNode("span", _hoisted_3, [renderSlot(_ctx.$slots, "title")]), _ctx.$slots.description ? (openBlock(), createElementBlock("span", _hoisted_4, [renderSlot(_ctx.$slots, "description")])) : createCommentVNode("", true)])]), renderSlot(_ctx.$slots, "actions")], 2);
19
+ };
20
+ }
21
+ });
22
+ //#endregion
23
+ export { CanvasBanner_default as default };
@@ -0,0 +1,7 @@
1
+ type __VLS_Props = {
2
+ orientation?: 'horizontal' | 'vertical';
3
+ width?: number;
4
+ };
5
+ declare const __VLS_export: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
6
+ declare const _default: typeof __VLS_export;
7
+ export default _default;
@@ -0,0 +1,22 @@
1
+ import { t as _plugin_vue_export_helper_default } from "../shared/_plugin-vue_export-helper-BOaGB7Aw.js";
2
+ import { createElementBlock, defineComponent, normalizeClass, openBlock, useCssVars } from "vue";
3
+ //#endregion
4
+ //#region src/components/common/ContentDivider.vue
5
+ var ContentDivider_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @__PURE__ */ defineComponent({
6
+ __name: "ContentDivider",
7
+ props: {
8
+ orientation: { default: "horizontal" },
9
+ width: { default: .3 }
10
+ },
11
+ setup(__props) {
12
+ useCssVars((_ctx) => ({ "v5581bd6e": _ctx.width + "px" }));
13
+ return (_ctx, _cache) => {
14
+ return openBlock(), createElementBlock("div", { class: normalizeClass(["content-divider bg-border", {
15
+ "content-divider--horizontal": __props.orientation === "horizontal",
16
+ "content-divider--vertical": __props.orientation === "vertical"
17
+ }]) }, null, 2);
18
+ };
19
+ }
20
+ }), [["__scopeId", "data-v-dcb6a1f4"]]);
21
+ //#endregion
22
+ export { ContentDivider_default as default };
@@ -0,0 +1,6 @@
1
+ type __VLS_Props = {
2
+ renderFunction: () => HTMLElement;
3
+ };
4
+ declare const __VLS_export: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
5
+ declare const _default: typeof __VLS_export;
6
+ export default _default;
@@ -0,0 +1,28 @@
1
+ import { createElementBlock, defineComponent, onMounted, openBlock, ref, watch } from "vue";
2
+ //#endregion
3
+ //#region src/components/common/CustomFormValue.vue
4
+ var CustomFormValue_default = /* @__PURE__ */ defineComponent({
5
+ __name: "CustomFormValue",
6
+ props: { renderFunction: { type: Function } },
7
+ setup(__props) {
8
+ const props = __props;
9
+ const container = ref(null);
10
+ function renderContent() {
11
+ if (container.value) {
12
+ container.value.innerHTML = "";
13
+ const element = props.renderFunction();
14
+ container.value.appendChild(element);
15
+ }
16
+ }
17
+ onMounted(renderContent);
18
+ watch(() => props.renderFunction, renderContent);
19
+ return (_ctx, _cache) => {
20
+ return openBlock(), createElementBlock("div", {
21
+ ref_key: "container",
22
+ ref: container
23
+ }, null, 512);
24
+ };
25
+ }
26
+ });
27
+ //#endregion
28
+ export { CustomFormValue_default as default };
@@ -0,0 +1,7 @@
1
+ type __VLS_Props = {
2
+ size?: number;
3
+ duration?: string;
4
+ };
5
+ declare const __VLS_export: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
6
+ declare const _default: typeof __VLS_export;
7
+ export default _default;
@@ -0,0 +1,34 @@
1
+ import { t as _plugin_vue_export_helper_default } from "../shared/_plugin-vue_export-helper-BOaGB7Aw.js";
2
+ import { createElementBlock, createStaticVNode, defineComponent, normalizeStyle, openBlock } from "vue";
3
+ //#region src/components/common/DotSpinner.vue?vue&type=script&setup=true&lang.ts
4
+ var _hoisted_1 = ["width", "height"];
5
+ //#endregion
6
+ //#region src/components/common/DotSpinner.vue
7
+ var DotSpinner_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @__PURE__ */ defineComponent({
8
+ __name: "DotSpinner",
9
+ props: {
10
+ size: { default: 24 },
11
+ duration: { default: "2s" }
12
+ },
13
+ setup(__props) {
14
+ return (_ctx, _cache) => {
15
+ return openBlock(), createElementBlock("div", {
16
+ "data-testid": "dot-spinner",
17
+ class: "inline-flex items-center justify-center",
18
+ style: normalizeStyle({
19
+ width: __props.size + "px",
20
+ height: __props.size + "px"
21
+ })
22
+ }, [(openBlock(), createElementBlock("svg", {
23
+ xmlns: "http://www.w3.org/2000/svg",
24
+ width: __props.size,
25
+ height: __props.size,
26
+ viewBox: "0 0 14 14",
27
+ class: "animate-spin fill-foreground",
28
+ style: normalizeStyle({ animationDuration: __props.duration })
29
+ }, [..._cache[0] || (_cache[0] = [createStaticVNode("<g clip-path=\"url(#clip0_776_9582)\" data-v-8e668792><path class=\"dot-animation\" style=\"animation-delay:0s;\" fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M7 2.21053C7.61042 2.21053 8.10526 1.71568 8.10526 1.10526C8.10526 0.494843 7.61042 0 7 0C6.38958 0 5.89474 0.494843 5.89474 1.10526C5.89474 1.71568 6.38958 2.21053 7 2.21053Z\" data-v-8e668792></path><path class=\"dot-animation\" style=\"animation-delay:0.25s;\" fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M2.21053 7C2.21053 7.61042 1.71568 8.10526 1.10526 8.10526C0.494843 8.10526 0 7.61042 0 7C0 6.38958 0.494843 5.89474 1.10526 5.89474C1.71568 5.89474 2.21053 6.38958 2.21053 7Z\" data-v-8e668792></path><path class=\"dot-animation\" style=\"animation-delay:0.5s;\" fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M14 7C14 7.61042 13.5052 8.10526 12.8947 8.10526C12.2843 8.10526 11.7895 7.61042 11.7895 7C11.7895 6.38958 12.2843 5.89474 12.8947 5.89474C13.5052 5.89474 14 6.38958 14 7Z\" data-v-8e668792></path><path class=\"dot-animation\" style=\"animation-delay:0.75s;\" fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M8.10526 12.8947C8.10526 13.5052 7.61041 14 6.99999 14C6.38957 14 5.89473 13.5052 5.89473 12.8947C5.89473 12.2843 6.38957 11.7895 6.99999 11.7895C7.61041 11.7895 8.10526 12.2843 8.10526 12.8947Z\" data-v-8e668792></path><path class=\"dot-animation\" style=\"animation-delay:0.125s;\" fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M2.05039 3.61349C2.48203 4.04513 3.18184 4.04513 3.61347 3.61349C4.0451 3.18186 4.0451 2.48205 3.61347 2.05042C3.18184 1.61878 2.48203 1.61878 2.05039 2.05042C1.61876 2.48205 1.61876 3.18186 2.05039 3.61349Z\" data-v-8e668792></path><path class=\"dot-animation\" style=\"animation-delay:0.625s;\" fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M11.9496 11.9496C11.518 12.3812 10.8182 12.3812 10.3865 11.9496C9.9549 11.5179 9.9549 10.8181 10.3865 10.3865C10.8182 9.95485 11.518 9.95485 11.9496 10.3865C12.3812 10.8181 12.3812 11.5179 11.9496 11.9496Z\" data-v-8e668792></path><path class=\"dot-animation\" style=\"animation-delay:0.875s;\" fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M2.05039 11.9496C2.48203 12.3812 3.18184 12.3812 3.61347 11.9496C4.0451 11.5179 4.0451 10.8181 3.61347 10.3865C3.18184 9.95485 2.48203 9.95485 2.05039 10.3865C1.61876 10.8181 1.61876 11.5179 2.05039 11.9496Z\" data-v-8e668792></path><path class=\"dot-animation\" style=\"animation-delay:0.375s;\" fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M11.9496 3.61349C11.518 4.04513 10.8182 4.04513 10.3865 3.61349C9.9549 3.18186 9.9549 2.48205 10.3865 2.05042C10.8182 1.61878 11.518 1.61878 11.9496 2.05042C12.3812 2.48205 12.3812 3.18186 11.9496 3.61349Z\" data-v-8e668792></path></g><defs data-v-8e668792><clipPath id=\"clip0_776_9582\" data-v-8e668792><rect width=\"14\" height=\"14\" fill=\"white\" data-v-8e668792></rect></clipPath></defs>", 2)])], 12, _hoisted_1))], 4);
30
+ };
31
+ }
32
+ }), [["__scopeId", "data-v-8e668792"]]);
33
+ //#endregion
34
+ export { DotSpinner_default as default };
@@ -0,0 +1,16 @@
1
+ type __VLS_Props = {
2
+ modelValue: string;
3
+ isEditing?: boolean;
4
+ inputAttrs?: Record<string, string>;
5
+ labelClass?: string;
6
+ labelType?: string;
7
+ };
8
+ declare const __VLS_export: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
9
+ cancel: (...args: any[]) => void;
10
+ edit: (...args: any[]) => void;
11
+ }, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
12
+ onCancel?: ((...args: any[]) => any) | undefined;
13
+ onEdit?: ((...args: any[]) => any) | undefined;
14
+ }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
15
+ declare const _default: typeof __VLS_export;
16
+ export default _default;
@@ -0,0 +1,73 @@
1
+ import { t as Input_default } from "../shared/Input-39RLwDr2.js";
2
+ import { createBlock, createElementBlock, createTextVNode, defineComponent, mergeProps, nextTick, normalizeClass, openBlock, ref, resolveDynamicComponent, toDisplayString, unref, watch, withCtx, withDirectives, withKeys, withModifiers } from "vue";
3
+ //#region src/components/common/EditableText.vue?vue&type=script&setup=true&lang.ts
4
+ var _hoisted_1 = { class: "editable-text inline" };
5
+ //#endregion
6
+ //#region src/components/common/EditableText.vue
7
+ var EditableText_default = /* @__PURE__ */ defineComponent({
8
+ __name: "EditableText",
9
+ props: {
10
+ modelValue: {},
11
+ isEditing: {
12
+ type: Boolean,
13
+ default: false
14
+ },
15
+ inputAttrs: { default: () => ({}) },
16
+ labelClass: {},
17
+ labelType: { default: "span" }
18
+ },
19
+ emits: ["edit", "cancel"],
20
+ setup(__props, { emit: __emit }) {
21
+ const emit = __emit;
22
+ const inputValue = ref(__props.modelValue);
23
+ const inputRef = ref();
24
+ const isCanceling = ref(false);
25
+ function finishEditing() {
26
+ if (!isCanceling.value) emit("edit", inputValue.value);
27
+ isCanceling.value = false;
28
+ }
29
+ function cancelEditing() {
30
+ isCanceling.value = true;
31
+ inputValue.value = __props.modelValue;
32
+ emit("cancel");
33
+ inputRef.value?.blur();
34
+ }
35
+ watch(() => __props.isEditing, async (newVal) => {
36
+ if (newVal) {
37
+ inputValue.value = __props.modelValue;
38
+ await nextTick(() => {
39
+ if (!inputRef.value) return;
40
+ const fileName = inputValue.value.includes(".") ? inputValue.value.split(".").slice(0, -1).join(".") : inputValue.value;
41
+ inputRef.value.setSelectionRange(0, fileName.length);
42
+ });
43
+ }
44
+ }, { immediate: true });
45
+ const vFocus = { mounted: (el) => el.focus() };
46
+ return (_ctx, _cache) => {
47
+ return openBlock(), createElementBlock("div", _hoisted_1, [!__props.isEditing ? (openBlock(), createBlock(resolveDynamicComponent(__props.labelType), {
48
+ key: 0,
49
+ class: normalizeClass(__props.labelClass)
50
+ }, {
51
+ default: withCtx(() => [createTextVNode(toDisplayString(__props.modelValue), 1)]),
52
+ _: 1
53
+ }, 8, ["class"])) : withDirectives((openBlock(), createBlock(unref(Input_default), mergeProps({
54
+ key: 1,
55
+ ref_key: "inputRef",
56
+ ref: inputRef,
57
+ modelValue: inputValue.value,
58
+ "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => inputValue.value = $event),
59
+ type: "text",
60
+ class: "h-full rounded-none p-0 focus-visible:ring-0"
61
+ }, __props.inputAttrs, {
62
+ onBlur: finishEditing,
63
+ onKeydownCapture: [_cache[1] || (_cache[1] = withKeys(withModifiers(($event) => inputRef.value?.blur(), ["stop"]), ["enter"])), withKeys(withModifiers(cancelEditing, ["stop"]), ["escape"])],
64
+ onClick: _cache[2] || (_cache[2] = withModifiers(() => {}, ["stop"])),
65
+ onContextmenu: _cache[3] || (_cache[3] = withModifiers(() => {}, ["stop"])),
66
+ onPointerdownCapture: _cache[4] || (_cache[4] = withModifiers(() => {}, ["stop"])),
67
+ onPointermoveCapture: _cache[5] || (_cache[5] = withModifiers(() => {}, ["stop"]))
68
+ }), null, 16, ["modelValue", "onKeydownCapture"])), [[vFocus]])]);
69
+ };
70
+ }
71
+ });
72
+ //#endregion
73
+ export { EditableText_default as default };
@@ -0,0 +1,18 @@
1
+ type __VLS_Props = {
2
+ loading: boolean;
3
+ loadingMessage?: string;
4
+ size?: 'sm' | 'md';
5
+ };
6
+ declare var __VLS_7: {};
7
+ type __VLS_Slots = {} & {
8
+ default?: (props: typeof __VLS_7) => any;
9
+ };
10
+ declare const __VLS_base: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
11
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
12
+ declare const _default: typeof __VLS_export;
13
+ export default _default;
14
+ type __VLS_WithSlots<T, S> = T & {
15
+ new (): {
16
+ $slots: S;
17
+ };
18
+ };
@@ -0,0 +1,41 @@
1
+ import { t as cn } from "../shared/src-CnJ6AzLP.js";
2
+ import { Transition, computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, defineComponent, normalizeClass, openBlock, renderSlot, toDisplayString, unref, withCtx } from "vue";
3
+ //#region src/components/common/LoadingOverlay.vue?vue&type=script&setup=true&lang.ts
4
+ var _hoisted_1 = {
5
+ key: 0,
6
+ class: "absolute inset-0 z-50 flex items-center justify-center bg-background/50",
7
+ "data-testid": "loading-overlay"
8
+ };
9
+ var _hoisted_2 = { class: "flex flex-col items-center" };
10
+ var _hoisted_3 = { class: "grid place-items-center" };
11
+ var _hoisted_4 = { class: "col-start-1 row-start-1" };
12
+ var _hoisted_5 = {
13
+ key: 0,
14
+ class: "mt-4 text-lg text-foreground"
15
+ };
16
+ //#endregion
17
+ //#region src/components/common/LoadingOverlay.vue
18
+ var LoadingOverlay_default = /* @__PURE__ */ defineComponent({
19
+ __name: "LoadingOverlay",
20
+ props: {
21
+ loading: { type: Boolean },
22
+ loadingMessage: {},
23
+ size: { default: "md" }
24
+ },
25
+ setup(__props) {
26
+ const spinnerSizeClass = computed(() => {
27
+ switch (__props.size) {
28
+ case "sm": return "h-6 w-6 border-2";
29
+ default: return "h-12 w-12 border-4";
30
+ }
31
+ });
32
+ return (_ctx, _cache) => {
33
+ return openBlock(), createBlock(Transition, { name: "fade" }, {
34
+ default: withCtx(() => [__props.loading ? (openBlock(), createElementBlock("div", _hoisted_1, [createElementVNode("div", _hoisted_2, [createElementVNode("div", _hoisted_3, [createElementVNode("div", { class: normalizeClass(unref(cn)("col-start-1 row-start-1 animate-spin rounded-full border-muted-foreground border-t-foreground", spinnerSizeClass.value)) }, null, 2), createElementVNode("div", _hoisted_4, [renderSlot(_ctx.$slots, "default")])]), __props.loadingMessage ? (openBlock(), createElementBlock("div", _hoisted_5, toDisplayString(__props.loadingMessage), 1)) : createCommentVNode("", true)])])) : createCommentVNode("", true)]),
35
+ _: 3
36
+ });
37
+ };
38
+ }
39
+ });
40
+ //#endregion
41
+ export { LoadingOverlay_default as default };
@@ -0,0 +1,6 @@
1
+ type __VLS_Props = {
2
+ text: string;
3
+ };
4
+ declare const __VLS_export: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
5
+ declare const _default: typeof __VLS_export;
6
+ export default _default;