@comfyorg/design-system 1.2.0 → 1.3.0-alpha.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 (300) hide show
  1. package/README.md +27 -3
  2. package/dist/accordion/PropertiesAccordionItem.vue.d.ts +34 -0
  3. package/dist/accordion/PropertiesAccordionItem.vue.js +62 -0
  4. package/dist/badge/Badge.vue.js +1 -2
  5. package/dist/badge/CreditBadge.vue.d.ts +0 -1
  6. package/dist/badge/CreditBadge.vue.js +10 -24
  7. package/dist/badge/badge.variants.d.ts +1 -1
  8. package/dist/button/Button.vue.js +1 -2
  9. package/dist/button-group/ButtonGroup.vue.js +2 -4
  10. package/dist/button-group/IconGroup.vue.js +2 -4
  11. package/dist/card/Card.vue.js +1 -2
  12. package/dist/card/CardFooter.vue.js +1 -2
  13. package/dist/card/CardHeader.vue.js +1 -2
  14. package/dist/card/CoachmarkCard.vue.js +2 -4
  15. package/dist/chart/Chart.vue.js +4 -7
  16. package/dist/chart/__tests__/chartTestUtils.d.ts +3 -0
  17. package/dist/checkbox/Checkbox.vue.js +2 -4
  18. package/dist/chip/Tag.vue.d.ts +61 -0
  19. package/dist/chip/Tag.vue.js +71 -0
  20. package/dist/chip/TagRemoveButton.vue.js +1 -2
  21. package/dist/color-picker/ColorPicker.vue.d.ts +23 -0
  22. package/dist/color-picker/ColorPicker.vue.js +139 -0
  23. package/dist/color-picker/ColorPickerPanel.vue.d.ts +27 -0
  24. package/dist/color-picker/ColorPickerPanel.vue.js +1 -0
  25. package/dist/color-picker/ColorPickerSaturationValue.vue.d.ts +17 -0
  26. package/dist/color-picker/ColorPickerSaturationValue.vue.js +1 -0
  27. package/dist/color-picker/ColorPickerSlider.vue.d.ts +17 -0
  28. package/dist/color-picker/ColorPickerSlider.vue.js +1 -0
  29. package/dist/color-picker/types.d.ts +22 -0
  30. package/dist/color-picker/types.js +0 -0
  31. package/dist/color-picker/useColorPicker.d.ts +33 -0
  32. package/dist/common/CanvasBanner.vue.js +3 -5
  33. package/dist/common/ContentDivider.vue.js +2 -4
  34. package/dist/common/CustomFormValue.vue.js +1 -3
  35. package/dist/common/DotSpinner.vue.js +3 -5
  36. package/dist/common/EditableText.vue.js +3 -5
  37. package/dist/common/HighlightedText.vue.d.ts +8 -0
  38. package/dist/common/HighlightedText.vue.js +49 -0
  39. package/dist/common/LoadingOverlay.vue.js +3 -5
  40. package/dist/common/MarkdownText.vue.js +2 -4
  41. package/dist/common/MarqueeLine.vue.js +2 -3
  42. package/dist/common/NoResultsPlaceholder.vue.d.ts +28 -0
  43. package/dist/common/NoResultsPlaceholder.vue.js +49 -0
  44. package/dist/common/NotificationPopup.vue.d.ts +28 -0
  45. package/dist/common/NotificationPopup.vue.js +63 -0
  46. package/dist/common/OverlayIcon.vue.js +1 -2
  47. package/dist/common/SanitizedHtml.vue.js +2 -4
  48. package/dist/common/TextDivider.vue.js +3 -5
  49. package/dist/common/TextTicker.vue.js +2 -4
  50. package/dist/common/TextTickerMultiLine.vue.js +3 -6
  51. package/dist/common/UserAvatar.vue.d.ts +9 -0
  52. package/dist/common/UserAvatar.vue.js +45 -0
  53. package/dist/common/VerticalDivider.vue.js +2 -3
  54. package/dist/common/VideoCompareSlider.vue.js +3 -5
  55. package/dist/common/ViewportWidgetShell.vue.js +3 -5
  56. package/dist/common/VirtualGrid.vue.js +1 -3
  57. package/dist/common/highlightQuery.d.ts +6 -0
  58. package/dist/composables/useAttrsClass.js +1 -2
  59. package/dist/composables/usePopoverSizing.js +1 -2
  60. package/dist/confirm/ConfirmBody.vue.js +3 -5
  61. package/dist/confirm/ConfirmFooter.vue.d.ts +18 -0
  62. package/dist/confirm/ConfirmFooter.vue.js +53 -0
  63. package/dist/confirm/ConfirmHeader.vue.js +2 -4
  64. package/dist/content-card/CardBottom.vue.js +2 -4
  65. package/dist/content-card/CardContainer.vue.js +3 -5
  66. package/dist/content-card/CardTop.vue.js +2 -4
  67. package/dist/dialog/Dialog.vue.js +1 -3
  68. package/dist/dialog/DialogClose.vue.js +1 -24
  69. package/dist/dialog/DialogContent.vue.js +1 -73
  70. package/dist/dialog/DialogDescription.vue.js +2 -4
  71. package/dist/dialog/DialogFooter.vue.js +2 -4
  72. package/dist/dialog/DialogHeader.vue.js +2 -4
  73. package/dist/dialog/DialogMaximize.vue.js +2 -4
  74. package/dist/dialog/DialogOverlay.vue.js +1 -35
  75. package/dist/dialog/DialogPanel.vue.js +7 -9
  76. package/dist/dialog/DialogPortal.vue.js +1 -38
  77. package/dist/dialog/DialogTitle.vue.js +1 -2
  78. package/dist/dialog/Dialogue.vue.d.ts +22 -0
  79. package/dist/dialog/Dialogue.vue.js +56 -0
  80. package/dist/dialog/dialog.variants.js +4 -5
  81. package/dist/field/Field.vue.js +4 -7
  82. package/dist/field/FieldDescription.vue.js +2 -4
  83. package/dist/field/FieldError.vue.js +3 -5
  84. package/dist/field/FieldGroup.vue.js +2 -4
  85. package/dist/field/FieldLabel.vue.js +3 -5
  86. package/dist/field/FieldSwitch.vue.d.ts +16 -0
  87. package/dist/field/FieldSwitch.vue.js +43 -0
  88. package/dist/field/LayoutField.vue.d.ts +18 -0
  89. package/dist/field/LayoutField.vue.js +1 -0
  90. package/dist/field/ModelInfoField.vue.js +2 -4
  91. package/dist/hover-card/HoverCard.vue.js +1 -3
  92. package/dist/hover-card/HoverCardContent.vue.js +2 -4
  93. package/dist/hover-card/HoverCardTrigger.vue.js +1 -3
  94. package/dist/icon/ComfyLogo.vue.js +2 -4
  95. package/dist/icon/PuzzleIcon.vue.js +2 -4
  96. package/dist/icon/TinyChevronIcon.vue.js +1 -3
  97. package/dist/icon/VerifiedIcon.vue.js +2 -4
  98. package/dist/input/Input.vue.js +1 -2
  99. package/dist/input/PasswordInput.vue.js +5 -7
  100. package/dist/input-group/InputGroup.vue.js +1 -2
  101. package/dist/input-group/InputGroupAddon.vue.js +1 -2
  102. package/dist/input-group/InputGroupButton.vue.js +1 -2
  103. package/dist/input-group/InputGroupInput.vue.js +1 -2
  104. package/dist/input-group/inputGroup.variants.js +1 -2
  105. package/dist/knob/Knob.vue.js +3 -5
  106. package/dist/label/Label.vue.js +1 -2
  107. package/dist/layout/BaseModalLayout.vue.d.ts +67 -0
  108. package/dist/layout/BaseModalLayout.vue.js +198 -0
  109. package/dist/media/AudioPreview.vue.js +2 -4
  110. package/dist/media/ImageLightbox.vue.d.ts +17 -0
  111. package/dist/media/ImageLightbox.vue.js +76 -0
  112. package/dist/media/MediaTitle.vue.js +2 -4
  113. package/dist/media/Video.vue.d.ts +28 -0
  114. package/dist/media/Video.vue.js +100 -0
  115. package/dist/media/VideoPlayOverlay.vue.js +3 -5
  116. package/dist/media/VideoPreview.vue.js +2 -4
  117. package/dist/media/ZoomPane.vue.js +1 -3
  118. package/dist/menu/ContextMenu.vue.js +3 -5
  119. package/dist/menu/ContextMenuContent.vue.js +1 -2
  120. package/dist/menu/Menu.vue.js +3 -5
  121. package/dist/menu/MenuAction.vue.js +1 -2
  122. package/dist/menu/MenuContent.vue.js +1 -2
  123. package/dist/menu/MenuItem.vue.js +2 -4
  124. package/dist/menu/MenuItemContent.vue.js +1 -2
  125. package/dist/menu/MenuItems.vue.js +1 -2
  126. package/dist/menu/MenuRadioGroup.vue.js +1 -2
  127. package/dist/menu/MenuRadioItem.vue.js +1 -2
  128. package/dist/menu/MenuSeparator.vue.js +1 -2
  129. package/dist/menu/MenuSub.vue.js +1 -2
  130. package/dist/menu/MenuSubContent.vue.js +1 -2
  131. package/dist/menu/MenuSubTrigger.vue.js +1 -2
  132. package/dist/menu/MenuSubmenu.vue.js +1 -2
  133. package/dist/menu/menuAnchor.js +1 -2
  134. package/dist/menu/menuStyles.js +1 -2
  135. package/dist/menu/usePointMenu.js +1 -2
  136. package/dist/message/Message.vue.js +4 -6
  137. package/dist/message/message.variants.js +1 -2
  138. package/dist/multi-select/MultiSelect.vue.js +3 -5
  139. package/dist/multi-select/MultiSelectContent.vue.js +1 -2
  140. package/dist/multi-select/MultiSelectTrigger.vue.js +1 -2
  141. package/dist/navigation/LeftSidePanel.vue.d.ts +12 -0
  142. package/dist/navigation/LeftSidePanel.vue.js +82 -0
  143. package/dist/navigation/NavIcon.vue.d.ts +7 -0
  144. package/dist/navigation/NavIcon.vue.js +1 -0
  145. package/dist/navigation/NavItem.vue.d.ts +21 -0
  146. package/dist/navigation/NavItem.vue.js +1 -0
  147. package/dist/navigation/NavTitle.vue.js +1 -42
  148. package/dist/navigation/SidebarTopArea.vue.js +2 -3
  149. package/dist/navigation/types.d.ts +13 -0
  150. package/dist/navigation/types.js +0 -0
  151. package/dist/number-field/NumberField.vue.js +2 -4
  152. package/dist/number-field/NumberFieldDecrement.vue.js +2 -4
  153. package/dist/number-field/NumberFieldIncrement.vue.js +2 -4
  154. package/dist/number-field/NumberFieldInput.vue.js +2 -4
  155. package/dist/number-field/PropertyNumberField.vue.js +3 -5
  156. package/dist/pagination/Pagination.vue.js +8 -10
  157. package/dist/popover/PopoverContent.vue.js +1 -91
  158. package/dist/popover/usePopoverViewportDismiss.js +1 -2
  159. package/dist/radio-group/RadioGroup.vue.js +2 -4
  160. package/dist/radio-group/RadioGroupItem.vue.js +2 -4
  161. package/dist/search-input/AsyncSearchInput.vue.js +3 -5
  162. package/dist/search-input/SearchAutocomplete.vue.js +4 -6
  163. package/dist/search-input/SearchInput.vue.js +4 -6
  164. package/dist/select/DropdownControl.vue.js +2 -4
  165. package/dist/select/Select.vue.js +1 -2
  166. package/dist/select/SelectContent.vue.js +1 -2
  167. package/dist/select/SelectItem.vue.d.ts +4 -0
  168. package/dist/select/SelectItem.vue.js +1 -2
  169. package/dist/select/SelectScrollDownButton.vue.js +1 -2
  170. package/dist/select/SelectScrollUpButton.vue.js +1 -2
  171. package/dist/select/SelectTrigger.vue.js +1 -2
  172. package/dist/select/SelectValue.vue.js +1 -2
  173. package/dist/select/useSelectSearch.js +1 -2
  174. package/dist/shared/{Badge-D3uWa3yk.js → Badge-DFHO3AFi.js} +4 -6
  175. package/dist/shared/{Button-CilmsOkY.js → Button-Dj_H5v3V.js} +5 -8
  176. package/dist/shared/{Card-l7baUdn0.js → Card-BrvqUM49.js} +3 -5
  177. package/dist/shared/{CardFooter-BM6EmVi7.js → CardFooter-BV_I0pM-.js} +2 -4
  178. package/dist/shared/{CardHeader-B5To28Jp.js → CardHeader-CMutruBx.js} +2 -4
  179. package/dist/shared/ColorPickerPanel-DQGHuvxk.js +239 -0
  180. package/dist/shared/ColorPickerSaturationValue-B5VDiMcl.js +64 -0
  181. package/dist/shared/ColorPickerSlider--mnQyzWD.js +305 -0
  182. package/dist/shared/{ContextMenuContent-CNQHJQ81.js → ContextMenuContent-RNyBBJOX.js} +2 -4
  183. package/dist/shared/DialogClose-CrtPRSNX.js +22 -0
  184. package/dist/shared/DialogContent-v2s55FXs.js +71 -0
  185. package/dist/shared/DialogOverlay-C9qv0zme.js +33 -0
  186. package/dist/shared/DialogPortal-DtCpLgtO.js +36 -0
  187. package/dist/shared/{DialogTitle-CfkkTGuU.js → DialogTitle-Chomvpgq.js} +2 -4
  188. package/dist/shared/{Input-39RLwDr2.js → Input-DOeNoniw.js} +2 -4
  189. package/dist/shared/{InputGroup-kjQKkhyB.js → InputGroup-BYt6BWpk.js} +2 -4
  190. package/dist/shared/{InputGroupAddon-DLDRT0CQ.js → InputGroupAddon-B1cn7czs.js} +3 -5
  191. package/dist/shared/{InputGroupButton-BoEp2apg.js → InputGroupButton-tw5AYOoR.js} +3 -5
  192. package/dist/shared/{InputGroupInput-E2MlEVUU.js → InputGroupInput-C_kkIxvY.js} +3 -5
  193. package/dist/shared/{Label-Cx_lFofI.js → Label-kwhWNR2P.js} +2 -4
  194. package/dist/shared/LayoutField-C8KCaVF0.js +34 -0
  195. package/dist/shared/{MenuAction-BdghJ23k.js → MenuAction-0z8BSoX9.js} +5 -8
  196. package/dist/shared/{MenuContent-ChqlM3xA.js → MenuContent--tKCqaIO.js} +2 -4
  197. package/dist/shared/{MenuItemContent--dPNoBmU.js → MenuItemContent-Be658c7e.js} +6 -8
  198. package/dist/shared/{MenuItems-BJKetPV-.js → MenuItems-BZTlERd6.js} +5 -7
  199. package/dist/shared/{MenuRadioGroup-Bpjt9sHI.js → MenuRadioGroup-B28YS1p1.js} +4 -6
  200. package/dist/shared/{MenuRadioItem-h7hh_RGU.js → MenuRadioItem-D8DFu-KU.js} +2 -4
  201. package/dist/shared/{MenuSeparator-Dm6CkPqB.js → MenuSeparator-DrAiObmE.js} +2 -4
  202. package/dist/shared/{MenuSub-Dbnj2w-X.js → MenuSub-DSizq_fV.js} +1 -3
  203. package/dist/shared/{MenuSubContent-M-g3fllh.js → MenuSubContent-ghzkX4hX.js} +2 -4
  204. package/dist/shared/{MenuSubTrigger-D6-3s2NL.js → MenuSubTrigger-BGRIm_Bf.js} +2 -4
  205. package/dist/shared/{MenuSubmenu-QHWMyfKF.js → MenuSubmenu-CjPf8DXl.js} +5 -7
  206. package/dist/shared/{MultiSelectContent-c1D5avjh.js → MultiSelectContent-9xyBQKz3.js} +5 -7
  207. package/dist/shared/{MultiSelectTrigger-lmuXqETa.js → MultiSelectTrigger-DNySkpH9.js} +4 -6
  208. package/dist/shared/NavIcon-FTJH75HH.js +12 -0
  209. package/dist/shared/NavItem-sQJ-77Zw.js +77 -0
  210. package/dist/shared/NavTitle-BM22yfCR.js +40 -0
  211. package/dist/shared/{OverlayIcon-DntJI-mm.js → OverlayIcon-C-din824.js} +3 -5
  212. package/dist/shared/PopoverContent-DNqL6t-O.js +89 -0
  213. package/dist/shared/{SearchableSingleSelect-Dnti1kqJ.js → SearchableSingleSelect-DQauLQWW.js} +4 -6
  214. package/dist/shared/{Select-CP3OZjtL.js → Select-DtVgv7Po.js} +1 -3
  215. package/dist/shared/{SelectContent-C8aNlcFf.js → SelectContent-Ba1mCDWM.js} +4 -6
  216. package/dist/shared/{SelectItem-tU4CIa5J.js → SelectItem-DaOr3TFS.js} +23 -10
  217. package/dist/shared/{SelectScrollDownButton-Dvig5MVc.js → SelectScrollDownButton-DYmxtida.js} +2 -4
  218. package/dist/shared/{SelectScrollUpButton-lv-npT6v.js → SelectScrollUpButton-DiyvSb9O.js} +2 -4
  219. package/dist/shared/{SelectTrigger-CCDiZW91.js → SelectTrigger-BBicbVsI.js} +2 -4
  220. package/dist/shared/{SelectValue-DFZFSiQp.js → SelectValue-BjaQc-WU.js} +1 -3
  221. package/dist/shared/{Switch-DsCzHpDU.js → Switch-qavkHWMz.js} +3 -5
  222. package/dist/shared/{TableHead-OxGist4m.js → TableHead-DpsXVMzk.js} +2 -4
  223. package/dist/shared/{TagRemoveButton-BiCdscIC.js → TagRemoveButton-D919R-To.js} +4 -6
  224. package/dist/shared/{TextTooltip-ClHQl84h.js → TextTooltip-BNlZI515.js} +4 -6
  225. package/dist/shared/{Tooltip-DbXyHv20.js → Tooltip-4rCebVao.js} +2 -4
  226. package/dist/shared/{TooltipContent-Bju-U7gc.js → TooltipContent-0GR7hBNu.js} +3 -5
  227. package/dist/shared/{TooltipTrigger-CVwISmWo.js → TooltipTrigger-64EIE5f2.js} +2 -4
  228. package/dist/shared/TransitionCollapse-VfBzyj5a.js +108 -0
  229. package/dist/shared/{_plugin-vue_export-helper-BOaGB7Aw.js → _plugin-vue_export-helper-DjkACiAr.js} +1 -2
  230. package/dist/shared/{searchInput.variants-NOge_52E.js → searchInput.variants-BdYHNjce.js} +1 -2
  231. package/dist/shared/{select.variants-BPn5Z7N1.js → select.variants-cRXaATWS.js} +1 -2
  232. package/dist/shared/{src-CnJ6AzLP.js → src-DTwuqov4.js} +1 -2
  233. package/dist/shared/{tabKeys-BISOrxWu.js → tabKeys-CP6c3wTY.js} +1 -2
  234. package/dist/shared/{tabs.variants-XUREdHry.js → tabs.variants-Cgk7bRhG.js} +1 -2
  235. package/dist/shared/{tag.variants-CCqCn8Jc.js → tag.variants-BEXRRbPc.js} +1 -2
  236. package/dist/shared/{tagsInputContext-QXu7RrG5.js → tagsInputContext-C-X1-iNf.js} +1 -2
  237. package/dist/shared/{toggleGroup.variants-CvjZDHMw.js → toggleGroup.variants-BuwGELw0.js} +1 -2
  238. package/dist/shared/{tooltipContext-BL5JtM0i.js → tooltipContext-arEyjGQC.js} +1 -2
  239. package/dist/single-select/SearchableSingleSelect.vue.js +1 -2
  240. package/dist/single-select/SingleSelect.vue.js +5 -7
  241. package/dist/skeleton/Skeleton.vue.js +2 -4
  242. package/dist/slider/GradientSlider.vue.d.ts +20 -0
  243. package/dist/slider/GradientSlider.vue.js +100 -0
  244. package/dist/slider/Slider.vue.js +2 -4
  245. package/dist/slider/gradients.d.ts +6 -0
  246. package/dist/spinner/Spinner.vue.js +2 -4
  247. package/dist/splitter/SplitterGroup.vue.js +2 -4
  248. package/dist/splitter/SplitterPanel.vue.js +2 -4
  249. package/dist/splitter/SplitterResizeHandle.vue.js +2 -4
  250. package/dist/switch/Switch.vue.js +1 -2
  251. package/dist/tab/Tab.vue.js +5 -8
  252. package/dist/tab/TabList.vue.js +3 -5
  253. package/dist/tab/TabPanel.vue.js +3 -5
  254. package/dist/table/Table.vue.js +3 -5
  255. package/dist/table/TableBody.vue.js +2 -4
  256. package/dist/table/TableCell.vue.js +2 -4
  257. package/dist/table/TableHead.vue.js +1 -2
  258. package/dist/table/TableHeader.vue.js +2 -4
  259. package/dist/table/TableRow.vue.js +2 -4
  260. package/dist/table/TableSortHead.vue.js +3 -5
  261. package/dist/table/tableUtils.js +1 -2
  262. package/dist/tabs/Tabs.vue.js +2 -4
  263. package/dist/tabs/TabsContent.vue.js +2 -4
  264. package/dist/tabs/TabsList.vue.js +3 -5
  265. package/dist/tabs/TabsTrigger.vue.js +3 -5
  266. package/dist/tags-input/TagsInput.vue.js +4 -6
  267. package/dist/tags-input/TagsInputInput.vue.js +3 -5
  268. package/dist/tags-input/TagsInputItem.vue.js +3 -5
  269. package/dist/tags-input/TagsInputItemDelete.vue.js +2 -4
  270. package/dist/tags-input/TagsInputItemText.vue.js +2 -4
  271. package/dist/textarea/Textarea.vue.js +2 -4
  272. package/dist/toast/ToastClose.vue.js +3 -5
  273. package/dist/toast/ToastDescription.vue.js +2 -4
  274. package/dist/toast/ToastDock.vue.js +2 -4
  275. package/dist/toast/ToastPanel.vue.js +3 -5
  276. package/dist/toast/ToastRoot.vue.js +3 -5
  277. package/dist/toast/ToastTitle.vue.js +2 -4
  278. package/dist/toast/ToastViewport.vue.js +2 -4
  279. package/dist/toggle-group/ToggleGroup.vue.js +3 -5
  280. package/dist/toggle-group/ToggleGroupItem.vue.js +3 -5
  281. package/dist/tooltip/TextTooltip.vue.js +1 -2
  282. package/dist/tooltip/Tooltip.vue.js +1 -2
  283. package/dist/tooltip/TooltipContent.vue.js +1 -2
  284. package/dist/tooltip/TooltipProvider.vue.js +1 -3
  285. package/dist/tooltip/TooltipTrigger.vue.js +1 -2
  286. package/dist/tooltip/tooltipConfig.js +1 -2
  287. package/dist/transition/TransitionCollapse.vue.js +1 -110
  288. package/dist/tree/Tree.vue.d.ts +1 -1
  289. package/dist/tree/Tree.vue.js +2 -4
  290. package/dist/tree/TreeItem.vue.js +4 -6
  291. package/dist/tree/treeStyles.js +1 -2
  292. package/package.json +40 -20
  293. package/src/css/_mask-editor.css +0 -1
  294. package/src/css/component-support.css +69 -0
  295. package/src/css/iconSizing.test.ts +1 -1
  296. package/src/css/published.css +3 -0
  297. package/src/css/style.css +2 -316
  298. package/src/css/theme.css +243 -0
  299. package/src/css/themes/void.css +102 -0
  300. package/src/icons/README.md +41 -84
@@ -0,0 +1,139 @@
1
+ import { i as hsvaToHex, n as hexToHsva, o as rgbToHex, r as hsbToRgb } from "../shared/ColorPickerSlider--mnQyzWD.js";
2
+ import { t as PopoverContent_default } from "../shared/PopoverContent-DNqL6t-O.js";
3
+ import { t as cn } from "../shared/src-DTwuqov4.js";
4
+ import { t as ColorPickerPanel_default } from "../shared/ColorPickerPanel-DQGHuvxk.js";
5
+ import { computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createVNode, defineComponent, mergeModels, normalizeClass, normalizeStyle, openBlock, ref, renderSlot, toDisplayString, unref, useModel, watch, withCtx } from "vue";
6
+ import { PopoverRoot, PopoverTrigger } from "reka-ui";
7
+ // src/components/color-picker/ColorPicker.vue?vue&type=script&setup=true&lang.ts
8
+ var _hoisted_1 = ["disabled", "aria-label"];
9
+ var _hoisted_2 = { class: "flex size-8 shrink-0 items-center justify-center" };
10
+ var _hoisted_3 = { class: "relative size-4 overflow-hidden rounded-sm" };
11
+ var _hoisted_4 = { class: "flex flex-1 items-center justify-between pl-1 text-xs text-foreground" };
12
+ var _hoisted_5 = { key: 0 };
13
+ var _hoisted_6 = {
14
+ key: 1,
15
+ class: "flex gap-2"
16
+ };
17
+ var _hoisted_7 = { key: 2 };
18
+ // src/components/color-picker/ColorPicker.vue
19
+ var ColorPicker_default = /* @__PURE__ */ defineComponent({
20
+ __name: "ColorPicker",
21
+ props: /*@__PURE__*/ mergeModels({
22
+ class: {},
23
+ disabled: { type: Boolean },
24
+ alpha: {
25
+ type: Boolean,
26
+ default: true
27
+ },
28
+ accessibleLabel: {},
29
+ hexLabel: {},
30
+ rgbaLabel: {},
31
+ hueLabel: {},
32
+ alphaLabel: {},
33
+ redLabel: {},
34
+ greenLabel: {},
35
+ blueLabel: {},
36
+ saturationBrightnessLabel: {},
37
+ formatLabel: {}
38
+ }, {
39
+ "modelValue": { default: "#000000" },
40
+ "modelModifiers": {}
41
+ }),
42
+ emits: ["update:modelValue"],
43
+ setup(__props) {
44
+ const modelValue = useModel(__props, "modelValue");
45
+ function readHsva(hex) {
46
+ const next = hexToHsva(hex || "#000000");
47
+ if (!__props.alpha) next.a = 100;
48
+ return next;
49
+ }
50
+ const hsva = ref(readHsva(modelValue.value));
51
+ const displayMode = ref("hex");
52
+ watch(modelValue, (newVal) => {
53
+ if (newVal !== hsvaToHex(hsva.value)) hsva.value = readHsva(newVal);
54
+ });
55
+ watch(hsva, (newHsva) => {
56
+ const hex = hsvaToHex(newHsva);
57
+ if (hex !== modelValue.value) modelValue.value = hex;
58
+ }, { deep: true });
59
+ const baseRgb = computed(() => hsbToRgb({
60
+ h: hsva.value.h,
61
+ s: hsva.value.s,
62
+ b: hsva.value.v
63
+ }));
64
+ const previewColor = computed(() => {
65
+ const hex = rgbToHex(baseRgb.value);
66
+ const a = hsva.value.a / 100;
67
+ if (a < 1) return `${hex}${Math.round(a * 255).toString(16).padStart(2, "0")}`;
68
+ return hex;
69
+ });
70
+ const displayHex = computed(() => rgbToHex(baseRgb.value).toLowerCase());
71
+ const isOpen = ref(false);
72
+ return (_ctx, _cache) => {
73
+ return openBlock(), createBlock(unref(PopoverRoot), {
74
+ open: isOpen.value,
75
+ "onUpdate:open": _cache[2] || (_cache[2] = ($event) => isOpen.value = $event)
76
+ }, {
77
+ default: withCtx(() => [createVNode(unref(PopoverTrigger), { "as-child": "" }, {
78
+ default: withCtx(() => [renderSlot(_ctx.$slots, "trigger", {}, () => [createElementVNode("button", {
79
+ type: "button",
80
+ disabled: _ctx.$props.disabled,
81
+ "aria-label": __props.accessibleLabel,
82
+ class: normalizeClass(unref(cn)("flex h-8 w-full items-center overflow-clip rounded-lg border border-transparent bg-secondary pr-2 outline-none hover:bg-muted disabled:cursor-not-allowed disabled:opacity-50", isOpen.value && "border-border", _ctx.$props.class))
83
+ }, [createElementVNode("div", _hoisted_2, [createElementVNode("div", _hoisted_3, [_cache[3] || (_cache[3] = createElementVNode("div", {
84
+ class: "absolute inset-0",
85
+ style: {
86
+ backgroundImage: "repeating-conic-gradient(#808080 0% 25%, transparent 0% 50%)",
87
+ backgroundSize: "4px 4px"
88
+ }
89
+ }, null, -1)), createElementVNode("div", {
90
+ class: "absolute inset-0",
91
+ style: normalizeStyle({ backgroundColor: previewColor.value })
92
+ }, null, 4)])]), createElementVNode("div", _hoisted_4, [displayMode.value === "hex" ? (openBlock(), createElementBlock("span", _hoisted_5, toDisplayString(displayHex.value), 1)) : (openBlock(), createElementBlock("div", _hoisted_6, [
93
+ createElementVNode("span", null, toDisplayString(baseRgb.value.r), 1),
94
+ createElementVNode("span", null, toDisplayString(baseRgb.value.g), 1),
95
+ createElementVNode("span", null, toDisplayString(baseRgb.value.b), 1)
96
+ ])), __props.alpha ? (openBlock(), createElementBlock("span", _hoisted_7, toDisplayString(hsva.value.a) + "%", 1)) : createCommentVNode("", true)])], 10, _hoisted_1)])]),
97
+ _: 3
98
+ }), createVNode(unref(PopoverContent_default), {
99
+ align: "start",
100
+ "side-offset": 7,
101
+ class: "w-auto border-0 bg-transparent p-0 shadow-none"
102
+ }, {
103
+ default: withCtx(() => [createVNode(ColorPickerPanel_default, {
104
+ hsva: hsva.value,
105
+ "onUpdate:hsva": _cache[0] || (_cache[0] = ($event) => hsva.value = $event),
106
+ "display-mode": displayMode.value,
107
+ "onUpdate:displayMode": _cache[1] || (_cache[1] = ($event) => displayMode.value = $event),
108
+ alpha: __props.alpha,
109
+ "hex-label": _ctx.$props.hexLabel,
110
+ "rgba-label": _ctx.$props.rgbaLabel,
111
+ "hue-label": _ctx.$props.hueLabel,
112
+ "alpha-label": _ctx.$props.alphaLabel,
113
+ "red-label": _ctx.$props.redLabel,
114
+ "green-label": _ctx.$props.greenLabel,
115
+ "blue-label": _ctx.$props.blueLabel,
116
+ "saturation-brightness-label": _ctx.$props.saturationBrightnessLabel,
117
+ "format-label": _ctx.$props.formatLabel
118
+ }, null, 8, [
119
+ "hsva",
120
+ "display-mode",
121
+ "alpha",
122
+ "hex-label",
123
+ "rgba-label",
124
+ "hue-label",
125
+ "alpha-label",
126
+ "red-label",
127
+ "green-label",
128
+ "blue-label",
129
+ "saturation-brightness-label",
130
+ "format-label"
131
+ ])]),
132
+ _: 1
133
+ })]),
134
+ _: 3
135
+ }, 8, ["open"]);
136
+ };
137
+ }
138
+ });
139
+ export { ColorPicker_default as default };
@@ -0,0 +1,27 @@
1
+ import { HSVA } from '@comfyorg/design-system/lib/color-picker/types';
2
+ type __VLS_Props = {
3
+ alpha?: boolean;
4
+ hexLabel: string;
5
+ rgbaLabel: string;
6
+ hueLabel: string;
7
+ alphaLabel: string;
8
+ redLabel: string;
9
+ greenLabel: string;
10
+ blueLabel: string;
11
+ saturationBrightnessLabel: string;
12
+ formatLabel: string;
13
+ };
14
+ type __VLS_ModelProps = {
15
+ 'hsva': HSVA;
16
+ 'displayMode': 'hex' | 'rgba';
17
+ };
18
+ type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
19
+ declare const __VLS_export: import('vue').DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
20
+ "update:hsva": (value: HSVA) => any;
21
+ "update:displayMode": (value: "hex" | "rgba") => any;
22
+ }, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
23
+ "onUpdate:hsva"?: ((value: HSVA) => any) | undefined;
24
+ "onUpdate:displayMode"?: ((value: "hex" | "rgba") => any) | undefined;
25
+ }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
26
+ declare const _default: typeof __VLS_export;
27
+ export default _default;
@@ -0,0 +1 @@
1
+ export { t as default } from "../shared/ColorPickerPanel-DQGHuvxk.js";
@@ -0,0 +1,17 @@
1
+ type __VLS_Props = {
2
+ hue: number;
3
+ };
4
+ type __VLS_ModelProps = {
5
+ 'saturation': number;
6
+ 'value': number;
7
+ };
8
+ type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
9
+ declare const __VLS_export: import('vue').DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
10
+ "update:saturation": (value: number) => any;
11
+ "update:value": (value: number) => any;
12
+ }, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
13
+ "onUpdate:saturation"?: ((value: number) => any) | undefined;
14
+ "onUpdate:value"?: ((value: number) => any) | undefined;
15
+ }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
16
+ declare const _default: typeof __VLS_export;
17
+ export default _default;
@@ -0,0 +1 @@
1
+ export { t as default } from "../shared/ColorPickerSaturationValue-B5VDiMcl.js";
@@ -0,0 +1,17 @@
1
+ type __VLS_Props = {
2
+ type: 'hue' | 'alpha';
3
+ hue?: number;
4
+ saturation?: number;
5
+ brightness?: number;
6
+ };
7
+ type __VLS_ModelProps = {
8
+ modelValue: number;
9
+ };
10
+ type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
11
+ declare const __VLS_export: import('vue').DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
12
+ "update:modelValue": (value: number) => any;
13
+ }, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
14
+ "onUpdate:modelValue"?: ((value: number) => any) | undefined;
15
+ }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
16
+ declare const _default: typeof __VLS_export;
17
+ export default _default;
@@ -0,0 +1 @@
1
+ export { t as default } from "../shared/ColorPickerSlider--mnQyzWD.js";
@@ -0,0 +1,22 @@
1
+ export interface HSVA {
2
+ h: number;
3
+ s: number;
4
+ v: number;
5
+ a: number;
6
+ }
7
+ export interface ColorPickerProps {
8
+ class?: string;
9
+ disabled?: boolean;
10
+ alpha?: boolean;
11
+ /** Defaults to the trigger's visible color value. */
12
+ accessibleLabel?: string;
13
+ hexLabel: string;
14
+ rgbaLabel: string;
15
+ hueLabel: string;
16
+ alphaLabel: string;
17
+ redLabel: string;
18
+ greenLabel: string;
19
+ blueLabel: string;
20
+ saturationBrightnessLabel: string;
21
+ formatLabel: string;
22
+ }
File without changes
@@ -0,0 +1,33 @@
1
+ import { Ref } from 'vue';
2
+ import { HSVA } from '@comfyorg/design-system/lib/color-picker/types';
3
+ export declare const rgbChannels: readonly [{
4
+ readonly key: "r";
5
+ }, {
6
+ readonly key: "g";
7
+ }, {
8
+ readonly key: "b";
9
+ }];
10
+ export declare function useColorPicker(hsva: Ref<HSVA>): {
11
+ hex: {
12
+ draft: string;
13
+ beginEdit: () => void;
14
+ commit: () => void;
15
+ reset: () => void;
16
+ };
17
+ rgb: {
18
+ draft: {
19
+ r: number;
20
+ g: number;
21
+ b: number;
22
+ };
23
+ beginEdit: () => void;
24
+ commit: () => void;
25
+ reset: () => void;
26
+ };
27
+ alpha: {
28
+ draft: number;
29
+ beginEdit: () => void;
30
+ commit: () => void;
31
+ reset: () => void;
32
+ };
33
+ };
@@ -1,6 +1,6 @@
1
- import { t as cn } from "../shared/src-CnJ6AzLP.js";
1
+ import { t as cn } from "../shared/src-DTwuqov4.js";
2
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
3
+ // src/components/common/CanvasBanner.vue?vue&type=script&setup=true&lang.ts
4
4
  var _hoisted_1 = { class: "flex min-w-0 items-center gap-2" };
5
5
  var _hoisted_2 = { class: "flex min-w-0 flex-col text-sm wrap-break-word" };
6
6
  var _hoisted_3 = { class: "font-medium text-foreground" };
@@ -8,8 +8,7 @@ var _hoisted_4 = {
8
8
  key: 0,
9
9
  class: "text-muted-foreground"
10
10
  };
11
- //#endregion
12
- //#region src/components/common/CanvasBanner.vue
11
+ // src/components/common/CanvasBanner.vue
13
12
  var CanvasBanner_default = /* @__PURE__ */ defineComponent({
14
13
  __name: "CanvasBanner",
15
14
  props: { accent: {} },
@@ -19,5 +18,4 @@ var CanvasBanner_default = /* @__PURE__ */ defineComponent({
19
18
  };
20
19
  }
21
20
  });
22
- //#endregion
23
21
  export { CanvasBanner_default as default };
@@ -1,7 +1,6 @@
1
- import { t as _plugin_vue_export_helper_default } from "../shared/_plugin-vue_export-helper-BOaGB7Aw.js";
1
+ import { t as _plugin_vue_export_helper_default } from "../shared/_plugin-vue_export-helper-DjkACiAr.js";
2
2
  import { createElementBlock, defineComponent, normalizeClass, openBlock, useCssVars } from "vue";
3
- //#endregion
4
- //#region src/components/common/ContentDivider.vue
3
+ // src/components/common/ContentDivider.vue
5
4
  var ContentDivider_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @__PURE__ */ defineComponent({
6
5
  __name: "ContentDivider",
7
6
  props: {
@@ -18,5 +17,4 @@ var ContentDivider_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/*
18
17
  };
19
18
  }
20
19
  }), [["__scopeId", "data-v-dcb6a1f4"]]);
21
- //#endregion
22
20
  export { ContentDivider_default as default };
@@ -1,6 +1,5 @@
1
1
  import { createElementBlock, defineComponent, onMounted, openBlock, ref, watch } from "vue";
2
- //#endregion
3
- //#region src/components/common/CustomFormValue.vue
2
+ // src/components/common/CustomFormValue.vue
4
3
  var CustomFormValue_default = /* @__PURE__ */ defineComponent({
5
4
  __name: "CustomFormValue",
6
5
  props: { renderFunction: { type: Function } },
@@ -24,5 +23,4 @@ var CustomFormValue_default = /* @__PURE__ */ defineComponent({
24
23
  };
25
24
  }
26
25
  });
27
- //#endregion
28
26
  export { CustomFormValue_default as default };
@@ -1,9 +1,8 @@
1
- import { t as _plugin_vue_export_helper_default } from "../shared/_plugin-vue_export-helper-BOaGB7Aw.js";
1
+ import { t as _plugin_vue_export_helper_default } from "../shared/_plugin-vue_export-helper-DjkACiAr.js";
2
2
  import { createElementBlock, createStaticVNode, defineComponent, normalizeStyle, openBlock } from "vue";
3
- //#region src/components/common/DotSpinner.vue?vue&type=script&setup=true&lang.ts
3
+ // src/components/common/DotSpinner.vue?vue&type=script&setup=true&lang.ts
4
4
  var _hoisted_1 = ["width", "height"];
5
- //#endregion
6
- //#region src/components/common/DotSpinner.vue
5
+ // src/components/common/DotSpinner.vue
7
6
  var DotSpinner_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @__PURE__ */ defineComponent({
8
7
  __name: "DotSpinner",
9
8
  props: {
@@ -30,5 +29,4 @@ var DotSpinner_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @__P
30
29
  };
31
30
  }
32
31
  }), [["__scopeId", "data-v-8e668792"]]);
33
- //#endregion
34
32
  export { DotSpinner_default as default };
@@ -1,9 +1,8 @@
1
- import { t as Input_default } from "../shared/Input-39RLwDr2.js";
1
+ import { t as Input_default } from "../shared/Input-DOeNoniw.js";
2
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
3
+ // src/components/common/EditableText.vue?vue&type=script&setup=true&lang.ts
4
4
  var _hoisted_1 = { class: "editable-text inline" };
5
- //#endregion
6
- //#region src/components/common/EditableText.vue
5
+ // src/components/common/EditableText.vue
7
6
  var EditableText_default = /* @__PURE__ */ defineComponent({
8
7
  __name: "EditableText",
9
8
  props: {
@@ -69,5 +68,4 @@ var EditableText_default = /* @__PURE__ */ defineComponent({
69
68
  };
70
69
  }
71
70
  });
72
- //#endregion
73
71
  export { EditableText_default as default };
@@ -0,0 +1,8 @@
1
+ type __VLS_Props = {
2
+ query: string;
3
+ text: string;
4
+ highlightClass?: string;
5
+ };
6
+ 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>;
7
+ declare const _default: typeof __VLS_export;
8
+ export default _default;
@@ -0,0 +1,49 @@
1
+ import { t as cn } from "../shared/src-DTwuqov4.js";
2
+ import { Fragment, createElementBlock, createTextVNode, defineComponent, normalizeClass, openBlock, renderList, toDisplayString, unref } from "vue";
3
+ // src/components/common/highlightQuery.ts
4
+ function highlightQuery(text, query) {
5
+ if (!query) return [{
6
+ text,
7
+ highlighted: false
8
+ }];
9
+ const pattern = Array.from(query).map((ch) => ch.replace(/[.*+?^${}()|[\]\\]/g, "\\$&")).join("[ ]?");
10
+ const regex = new RegExp(pattern, "gi");
11
+ const parts = [];
12
+ let lastIndex = 0;
13
+ for (const match of text.matchAll(regex)) {
14
+ if (match.index > lastIndex) parts.push({
15
+ text: text.slice(lastIndex, match.index),
16
+ highlighted: false
17
+ });
18
+ parts.push({
19
+ text: match[0],
20
+ highlighted: true
21
+ });
22
+ lastIndex = match.index + match[0].length;
23
+ }
24
+ if (lastIndex < text.length || parts.length === 0) parts.push({
25
+ text: text.slice(lastIndex),
26
+ highlighted: false
27
+ });
28
+ return parts;
29
+ }
30
+ // src/components/common/HighlightedText.vue
31
+ var HighlightedText_default = /* @__PURE__ */ defineComponent({
32
+ __name: "HighlightedText",
33
+ props: {
34
+ query: {},
35
+ text: {},
36
+ highlightClass: {}
37
+ },
38
+ setup(__props) {
39
+ return (_ctx, _cache) => {
40
+ return openBlock(true), createElementBlock(Fragment, null, renderList(unref(highlightQuery)(__props.text, __props.query), (part, index) => {
41
+ return openBlock(), createElementBlock(Fragment, { key: index }, [part.highlighted ? (openBlock(), createElementBlock("span", {
42
+ key: 0,
43
+ class: normalizeClass(unref(cn)("highlight", __props.highlightClass))
44
+ }, toDisplayString(part.text), 3)) : (openBlock(), createElementBlock(Fragment, { key: 1 }, [createTextVNode(toDisplayString(part.text), 1)], 64))], 64);
45
+ }), 128);
46
+ };
47
+ }
48
+ });
49
+ export { HighlightedText_default as default };
@@ -1,6 +1,6 @@
1
- import { t as cn } from "../shared/src-CnJ6AzLP.js";
1
+ import { t as cn } from "../shared/src-DTwuqov4.js";
2
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
3
+ // src/components/common/LoadingOverlay.vue?vue&type=script&setup=true&lang.ts
4
4
  var _hoisted_1 = {
5
5
  key: 0,
6
6
  class: "absolute inset-0 z-50 flex items-center justify-center bg-background/50",
@@ -13,8 +13,7 @@ var _hoisted_5 = {
13
13
  key: 0,
14
14
  class: "mt-4 text-lg text-foreground"
15
15
  };
16
- //#endregion
17
- //#region src/components/common/LoadingOverlay.vue
16
+ // src/components/common/LoadingOverlay.vue
18
17
  var LoadingOverlay_default = /* @__PURE__ */ defineComponent({
19
18
  __name: "LoadingOverlay",
20
19
  props: {
@@ -37,5 +36,4 @@ var LoadingOverlay_default = /* @__PURE__ */ defineComponent({
37
36
  };
38
37
  }
39
38
  });
40
- //#endregion
41
39
  export { LoadingOverlay_default as default };
@@ -1,5 +1,5 @@
1
1
  import { Fragment, computed, createElementBlock, createElementVNode, defineComponent, openBlock, renderList, toDisplayString } from "vue";
2
- //#region src/components/common/MarkdownText.vue?vue&type=script&setup=true&lang.ts
2
+ // src/components/common/MarkdownText.vue?vue&type=script&setup=true&lang.ts
3
3
  var _hoisted_1 = { class: "wrap-break-word" };
4
4
  var _hoisted_2 = ["textContent"];
5
5
  var _hoisted_3 = { key: 1 };
@@ -12,8 +12,7 @@ var _hoisted_8 = {
12
12
  class: "rounded-sm px-1 py-0.5 text-xs"
13
13
  };
14
14
  var _hoisted_9 = { key: 4 };
15
- //#endregion
16
- //#region src/components/common/MarkdownText.vue
15
+ // src/components/common/MarkdownText.vue
17
16
  var MarkdownText_default = /* @__PURE__ */ defineComponent({
18
17
  __name: "MarkdownText",
19
18
  props: { text: {} },
@@ -89,5 +88,4 @@ var MarkdownText_default = /* @__PURE__ */ defineComponent({
89
88
  };
90
89
  }
91
90
  });
92
- //#endregion
93
91
  export { MarkdownText_default as default };
@@ -1,6 +1,6 @@
1
- import { t as _plugin_vue_export_helper_default } from "../shared/_plugin-vue_export-helper-BOaGB7Aw.js";
1
+ import { t as _plugin_vue_export_helper_default } from "../shared/_plugin-vue_export-helper-DjkACiAr.js";
2
2
  import { createElementBlock, createElementVNode, openBlock, renderSlot } from "vue";
3
- //#region src/components/common/MarqueeLine.vue
3
+ // src/components/common/MarqueeLine.vue
4
4
  var _sfc_main = {};
5
5
  var _hoisted_1 = { class: "@container overflow-hidden mask-[linear-gradient(to_right,black_70%,transparent)] motion-safe:group-hover:mask-none" };
6
6
  var _hoisted_2 = { class: "inline-block min-w-full whitespace-nowrap [--_marquee-end:min(calc(-100%+100cqw),0px)] motion-safe:group-hover:animate-[marquee-scroll_2s_linear_infinite_alternate]" };
@@ -8,5 +8,4 @@ function _sfc_render(_ctx, _cache) {
8
8
  return openBlock(), createElementBlock("div", _hoisted_1, [createElementVNode("span", _hoisted_2, [renderSlot(_ctx.$slots, "default")])]);
9
9
  }
10
10
  var MarqueeLine_default = /*#__PURE__*/ _plugin_vue_export_helper_default(_sfc_main, [["render", _sfc_render]]);
11
- //#endregion
12
11
  export { MarqueeLine_default as default };
@@ -0,0 +1,28 @@
1
+ import { ButtonVariants } from '@comfyorg/design-system/button.variants';
2
+ type __VLS_Props = {
3
+ class?: string;
4
+ icon?: string;
5
+ title?: string;
6
+ message: string;
7
+ textClass?: string;
8
+ buttonIcon?: string;
9
+ buttonLabel?: string;
10
+ buttonVariant?: ButtonVariants['variant'];
11
+ };
12
+ declare var __VLS_1: {};
13
+ type __VLS_Slots = {} & {
14
+ title?: (props: typeof __VLS_1) => any;
15
+ };
16
+ declare const __VLS_base: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
17
+ action: (...args: any[]) => void;
18
+ }, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
19
+ onAction?: ((...args: any[]) => any) | undefined;
20
+ }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
21
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
22
+ declare const _default: typeof __VLS_export;
23
+ export default _default;
24
+ type __VLS_WithSlots<T, S> = T & {
25
+ new (): {
26
+ $slots: S;
27
+ };
28
+ };
@@ -0,0 +1,49 @@
1
+ import { t as cn } from "../shared/src-DTwuqov4.js";
2
+ import { t as Button_default } from "../shared/Button-Dj_H5v3V.js";
3
+ import { createBlock, createCommentVNode, createElementBlock, createElementVNode, createTextVNode, defineComponent, normalizeClass, openBlock, renderSlot, toDisplayString, unref, withCtx } from "vue";
4
+ // src/components/common/NoResultsPlaceholder.vue?vue&type=script&setup=true&lang.ts
5
+ var _hoisted_1 = { class: "flex flex-col items-center bg-(--surface-ground) text-center" };
6
+ var _hoisted_2 = {
7
+ key: 0,
8
+ class: "mb-2 text-foreground"
9
+ };
10
+ // src/components/common/NoResultsPlaceholder.vue
11
+ var NoResultsPlaceholder_default = /* @__PURE__ */ defineComponent({
12
+ __name: "NoResultsPlaceholder",
13
+ props: {
14
+ class: {},
15
+ icon: {},
16
+ title: {},
17
+ message: {},
18
+ textClass: {},
19
+ buttonIcon: {},
20
+ buttonLabel: {},
21
+ buttonVariant: {}
22
+ },
23
+ emits: ["action"],
24
+ setup(__props) {
25
+ const props = __props;
26
+ return (_ctx, _cache) => {
27
+ return openBlock(), createElementBlock("div", { class: normalizeClass(unref(cn)("h-full p-8", props.class)) }, [createElementVNode("div", _hoisted_1, [
28
+ __props.icon ? (openBlock(), createElementBlock("i", {
29
+ key: 0,
30
+ class: normalizeClass(unref(cn)(__props.icon, "mb-4 size-12 text-5xl"))
31
+ }, null, 2)) : createCommentVNode("", true),
32
+ renderSlot(_ctx.$slots, "title", {}, () => [__props.title ? (openBlock(), createElementBlock("h3", _hoisted_2, toDisplayString(__props.title), 1)) : createCommentVNode("", true)]),
33
+ createElementVNode("p", { class: normalizeClass(unref(cn)("mb-4 text-center whitespace-pre-line", __props.textClass)) }, toDisplayString(__props.message), 3),
34
+ __props.buttonLabel ? (openBlock(), createBlock(unref(Button_default), {
35
+ key: 1,
36
+ variant: __props.buttonVariant ?? "textonly",
37
+ onClick: _cache[0] || (_cache[0] = ($event) => _ctx.$emit("action"))
38
+ }, {
39
+ default: withCtx(() => [__props.buttonIcon ? (openBlock(), createElementBlock("i", {
40
+ key: 0,
41
+ class: normalizeClass(__props.buttonIcon)
42
+ }, null, 2)) : createCommentVNode("", true), createTextVNode(" " + toDisplayString(__props.buttonLabel), 1)]),
43
+ _: 1
44
+ }, 8, ["variant"])) : createCommentVNode("", true)
45
+ ])], 2);
46
+ };
47
+ }
48
+ });
49
+ export { NoResultsPlaceholder_default as default };
@@ -0,0 +1,28 @@
1
+ type __VLS_Props = {
2
+ icon?: string;
3
+ title: string;
4
+ subtitle?: string;
5
+ closeLabel?: string;
6
+ position?: 'bottom-left' | 'bottom-right';
7
+ };
8
+ declare var __VLS_9: {}, __VLS_11: {}, __VLS_13: {};
9
+ type __VLS_Slots = {} & {
10
+ default?: (props: typeof __VLS_9) => any;
11
+ } & {
12
+ 'footer-start'?: (props: typeof __VLS_11) => any;
13
+ } & {
14
+ 'footer-end'?: (props: typeof __VLS_13) => any;
15
+ };
16
+ declare const __VLS_base: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
17
+ close: () => any;
18
+ }, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
19
+ onClose?: (() => any) | undefined;
20
+ }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
21
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
22
+ declare const _default: typeof __VLS_export;
23
+ export default _default;
24
+ type __VLS_WithSlots<T, S> = T & {
25
+ new (): {
26
+ $slots: S;
27
+ };
28
+ };