@comfyorg/design-system 1.2.0 → 1.3.0-alpha.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (300) hide show
  1. package/README.md +33 -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 +50 -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 +3 -5
  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/_baseline.css +143 -0
  294. package/src/css/_mask-editor.css +0 -1
  295. package/src/css/baseline.css +3 -0
  296. package/src/css/iconSizing.test.ts +1 -1
  297. package/src/css/published.css +3 -0
  298. package/src/css/style.css +2 -316
  299. package/src/css/theme.css +175 -0
  300. package/src/icons/README.md +41 -84
@@ -1,2 +1 @@
1
- import { t as InputGroupInput_default } from "../shared/InputGroupInput-E2MlEVUU.js";
2
- export { InputGroupInput_default as default };
1
+ export { t as default } from "../shared/InputGroupInput-C_kkIxvY.js";
@@ -1,5 +1,5 @@
1
1
  import { cva } from "cva";
2
- //#region src/components/input-group/inputGroup.variants.ts
2
+ // src/components/input-group/inputGroup.variants.ts
3
3
  var inputGroupAddonVariants = cva({
4
4
  base: "flex h-auto cursor-text items-center justify-center gap-2 py-1.5 text-sm font-medium text-muted-foreground select-none group-has-[[data-slot=input-group-control]:disabled]/input-group:opacity-50",
5
5
  variants: { align: {
@@ -18,5 +18,4 @@ var inputGroupButtonVariants = cva({
18
18
  } },
19
19
  defaultVariants: { size: "xs" }
20
20
  });
21
- //#endregion
22
21
  export { inputGroupAddonVariants, inputGroupButtonVariants };
@@ -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 { computed, createElementBlock, createElementVNode, defineComponent, mergeModels, normalizeClass, openBlock, unref, useModel, useTemplateRef } from "vue";
3
- //#region src/components/knob/Knob.vue?vue&type=script&setup=true&lang.ts
3
+ // src/components/knob/Knob.vue?vue&type=script&setup=true&lang.ts
4
4
  var _hoisted_1 = [
5
5
  "tabindex",
6
6
  "aria-valuemin",
@@ -13,8 +13,7 @@ var _hoisted_2 = {
13
13
  class: "size-full rotate-[-225deg]"
14
14
  };
15
15
  var _hoisted_3 = ["stroke-dashoffset"];
16
- //#endregion
17
- //#region src/components/knob/Knob.vue
16
+ // src/components/knob/Knob.vue
18
17
  var Knob_default = /* @__PURE__ */ defineComponent({
19
18
  __name: "Knob",
20
19
  props: /*@__PURE__*/ mergeModels({
@@ -120,5 +119,4 @@ var Knob_default = /* @__PURE__ */ defineComponent({
120
119
  };
121
120
  }
122
121
  });
123
- //#endregion
124
122
  export { Knob_default as default };
@@ -1,2 +1 @@
1
- import { t as Label_default } from "../shared/Label-Cx_lFofI.js";
2
- export { Label_default as default };
1
+ export { t as default } from "../shared/Label-kwhWNR2P.js";
@@ -0,0 +1,67 @@
1
+ import { ButtonVariants } from '@comfyorg/design-system/button.variants';
2
+ declare const SIZE_CLASSES: {
3
+ readonly md: "h-[80vh] w-[90vw] max-w-[1400px]";
4
+ readonly lg: "h-[80vh] max-h-[1026px] w-[90vw] max-w-[1280px] min-[1450px]:max-w-[1724px] min-[3000px]:max-h-[1320px] min-[3000px]:max-w-[2200px]";
5
+ };
6
+ type ModalSize = keyof typeof SIZE_CLASSES;
7
+ type ContentPadding = 'default' | 'compact' | 'none';
8
+ type HeaderPadding = 'default' | 'symmetric';
9
+ type __VLS_Props = {
10
+ contentTitle: string;
11
+ labels: {
12
+ showLeftPanel: string;
13
+ hideLeftPanel: string;
14
+ showRightPanel: string;
15
+ hideRightPanel: string;
16
+ close: string;
17
+ };
18
+ rightPanelTitle?: string;
19
+ size?: ModalSize;
20
+ leftPanelWidth?: string;
21
+ contentPadding?: ContentPadding;
22
+ headerPadding?: HeaderPadding;
23
+ closeButtonVariant?: ButtonVariants['variant'];
24
+ closeIcon?: string;
25
+ };
26
+ type __VLS_ModelProps = {
27
+ 'rightPanelOpen'?: boolean;
28
+ };
29
+ type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
30
+ declare var __VLS_1: {}, __VLS_11: {}, __VLS_21: {}, __VLS_23: {}, __VLS_41: {}, __VLS_49: {}, __VLS_51: {}, __VLS_53: {}, __VLS_71: {};
31
+ type __VLS_Slots = {} & {
32
+ leftPanelHeaderTitle?: (props: typeof __VLS_1) => any;
33
+ } & {
34
+ leftPanel?: (props: typeof __VLS_11) => any;
35
+ } & {
36
+ header?: (props: typeof __VLS_21) => any;
37
+ } & {
38
+ 'header-right-area'?: (props: typeof __VLS_23) => any;
39
+ } & {
40
+ contentFilter?: (props: typeof __VLS_41) => any;
41
+ } & {
42
+ content?: (props: typeof __VLS_49) => any;
43
+ } & {
44
+ rightPanelHeaderTitle?: (props: typeof __VLS_51) => any;
45
+ } & {
46
+ rightPanelHeaderActions?: (props: typeof __VLS_53) => any;
47
+ } & {
48
+ rightPanel?: (props: typeof __VLS_71) => any;
49
+ };
50
+ declare const __VLS_base: import('vue').DefineComponent<__VLS_PublicProps, {
51
+ getContentScrollTop: () => number;
52
+ setContentScrollTop: (scrollTop: number) => void;
53
+ }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
54
+ close: () => any;
55
+ "update:rightPanelOpen": (value: boolean) => any;
56
+ }, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
57
+ onClose?: (() => any) | undefined;
58
+ "onUpdate:rightPanelOpen"?: ((value: boolean) => any) | undefined;
59
+ }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
60
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
61
+ declare const _default: typeof __VLS_export;
62
+ export default _default;
63
+ type __VLS_WithSlots<T, S> = T & {
64
+ new (): {
65
+ $slots: S;
66
+ };
67
+ };
@@ -0,0 +1,198 @@
1
+ import { t as Button_default } from "../shared/Button-Dj_H5v3V.js";
2
+ import { t as DialogTitle_default } from "../shared/DialogTitle-Chomvpgq.js";
3
+ import { t as cn } from "../shared/src-DTwuqov4.js";
4
+ import { Fragment, computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createTextVNode, createVNode, defineComponent, mergeModels, normalizeClass, normalizeStyle, openBlock, ref, renderSlot, toDisplayString, unref, useModel, useSlots, watch, withCtx, withKeys } from "vue";
5
+ import { useBreakpoints } from "@vueuse/core";
6
+ // src/components/layout/BaseModalLayout.vue?vue&type=script&setup=true&lang.ts
7
+ var _hoisted_1 = ["inert", "aria-hidden"];
8
+ var _hoisted_2 = {
9
+ "data-component-id": "LeftPanelHeader",
10
+ class: "flex h-18 w-full shrink-0 items-center-safe gap-2 pr-3 pl-6"
11
+ };
12
+ var _hoisted_3 = { class: "flex flex-col overflow-hidden bg-background" };
13
+ var _hoisted_4 = { class: "flex min-h-0 flex-1 flex-col" };
14
+ var _hoisted_5 = ["inert", "aria-hidden"];
15
+ var _hoisted_6 = { class: "flex h-full w-72 min-w-72 flex-col bg-card" };
16
+ var _hoisted_7 = {
17
+ "data-component-id": "RightPanelHeader",
18
+ class: "flex h-18 shrink-0 items-center gap-2 px-6"
19
+ };
20
+ var _hoisted_8 = {
21
+ key: 0,
22
+ class: "flex-1 text-base font-semibold select-none"
23
+ };
24
+ var _hoisted_9 = {
25
+ key: 1,
26
+ class: "flex-1"
27
+ };
28
+ var _hoisted_10 = { class: "min-h-0 flex-1 overflow-y-auto" };
29
+ // src/components/layout/BaseModalLayout.vue
30
+ var BaseModalLayout_default = /* @__PURE__ */ defineComponent({
31
+ __name: "BaseModalLayout",
32
+ props: /*@__PURE__*/ mergeModels({
33
+ contentTitle: {},
34
+ labels: {},
35
+ rightPanelTitle: {},
36
+ size: { default: "lg" },
37
+ leftPanelWidth: { default: "14rem" },
38
+ contentPadding: { default: "default" },
39
+ headerPadding: { default: "default" },
40
+ closeButtonVariant: {},
41
+ closeIcon: { default: "icon-[lucide--x]" }
42
+ }, {
43
+ "rightPanelOpen": {
44
+ type: Boolean,
45
+ default: false
46
+ },
47
+ "rightPanelOpenModifiers": {}
48
+ }),
49
+ emits: /*@__PURE__*/ mergeModels(["close"], ["update:rightPanelOpen"]),
50
+ setup(__props, { expose: __expose, emit: __emit }) {
51
+ const SIZE_CLASSES = {
52
+ md: "h-[80vh] w-[90vw] max-w-[1400px]",
53
+ lg: "h-[80vh] max-h-[1026px] w-[90vw] max-w-[1280px] min-[1450px]:max-w-[1724px] min-[3000px]:max-h-[1320px] min-[3000px]:max-w-[2200px]"
54
+ };
55
+ const emit = __emit;
56
+ const sizeClasses = computed(() => SIZE_CLASSES[__props.size]);
57
+ const isRightPanelOpen = useModel(__props, "rightPanelOpen");
58
+ const slots = useSlots();
59
+ const hasLeftPanel = computed(() => !!slots.leftPanel);
60
+ const hasRightPanel = computed(() => !!slots.rightPanel);
61
+ const notMobile = useBreakpoints({ md: 880 }).greater("md");
62
+ const isLeftPanelOpen = ref(true);
63
+ const mobileMenuOpen = ref(false);
64
+ const contentContainer = ref(null);
65
+ watch(notMobile, (isDesktop) => {
66
+ if (!isDesktop) mobileMenuOpen.value = false;
67
+ });
68
+ const showLeftPanel = computed(() => {
69
+ return notMobile.value ? isLeftPanelOpen.value : mobileMenuOpen.value;
70
+ });
71
+ const headerClass = computed(() => cn("flex w-full items-center justify-between gap-2", __props.headerPadding === "symmetric" ? "px-6 py-5" : "h-18 px-6"));
72
+ const headerContentClass = computed(() => cn("flex min-w-0 flex-1 gap-2", __props.headerPadding === "symmetric" && "min-h-10 items-center"));
73
+ const contentContainerClass = computed(() => cn("flex scrollbar-custom min-h-0 flex-1 flex-col overflow-y-auto", __props.contentPadding === "default" && "px-6 pt-0 pb-10", __props.contentPadding === "compact" && "px-6 pt-0 pb-2"));
74
+ const gridStyle = computed(() => ({ gridTemplateColumns: hasRightPanel.value ? `${hasLeftPanel.value && showLeftPanel.value ? __props.leftPanelWidth : "0rem"} 1fr ${isRightPanelOpen.value ? "18rem" : "0rem"}` : `${hasLeftPanel.value && showLeftPanel.value ? __props.leftPanelWidth : "0rem"} 1fr` }));
75
+ const toggleLeftPanel = () => {
76
+ if (notMobile.value) isLeftPanelOpen.value = !isLeftPanelOpen.value;
77
+ else mobileMenuOpen.value = !mobileMenuOpen.value;
78
+ };
79
+ const toggleRightPanel = () => {
80
+ isRightPanelOpen.value = !isRightPanelOpen.value;
81
+ };
82
+ function handleEscape(event) {
83
+ const target = event.target;
84
+ if (!(target instanceof HTMLElement)) return;
85
+ if (target instanceof HTMLInputElement || target instanceof HTMLTextAreaElement || target instanceof HTMLSelectElement || target.isContentEditable) return;
86
+ if (isRightPanelOpen.value) {
87
+ event.stopPropagation();
88
+ isRightPanelOpen.value = false;
89
+ }
90
+ }
91
+ __expose({
92
+ getContentScrollTop: () => contentContainer.value?.scrollTop ?? 0,
93
+ setContentScrollTop: (scrollTop) => {
94
+ if (contentContainer.value) contentContainer.value.scrollTop = scrollTop;
95
+ }
96
+ });
97
+ return (_ctx, _cache) => {
98
+ return openBlock(), createElementBlock("div", {
99
+ class: normalizeClass(unref(cn)("relative overflow-hidden rounded-2xl border bg-background shadow-lg", sizeClasses.value)),
100
+ onKeydownCapture: withKeys(handleEscape, ["esc"])
101
+ }, [createElementVNode("div", {
102
+ class: "grid size-full transition-[grid-template-columns] duration-300 ease-out",
103
+ style: normalizeStyle(gridStyle.value)
104
+ }, [
105
+ createElementVNode("nav", {
106
+ class: "flex h-full flex-col overflow-hidden bg-card",
107
+ inert: !showLeftPanel.value,
108
+ "aria-hidden": !showLeftPanel.value
109
+ }, [createElementVNode("header", _hoisted_2, [renderSlot(_ctx.$slots, "leftPanelHeaderTitle"), !unref(notMobile) && showLeftPanel.value ? (openBlock(), createBlock(unref(Button_default), {
110
+ key: 0,
111
+ size: "lg",
112
+ class: "ml-auto w-10 p-0",
113
+ "aria-label": __props.labels.hideLeftPanel,
114
+ onClick: toggleLeftPanel
115
+ }, {
116
+ default: withCtx(() => [..._cache[2] || (_cache[2] = [createElementVNode("i", { class: "icon-[lucide--panel-left-close]" }, null, -1)])]),
117
+ _: 1
118
+ }, 8, ["aria-label"])) : createCommentVNode("", true)]), renderSlot(_ctx.$slots, "leftPanel")], 8, _hoisted_1),
119
+ createElementVNode("div", _hoisted_3, [_ctx.$slots.header ? (openBlock(), createElementBlock("header", {
120
+ key: 0,
121
+ class: normalizeClass(headerClass.value)
122
+ }, [
123
+ createElementVNode("div", { class: normalizeClass(headerContentClass.value) }, [!unref(notMobile) && !showLeftPanel.value ? (openBlock(), createBlock(unref(Button_default), {
124
+ key: 0,
125
+ size: "lg",
126
+ class: "w-10 p-0",
127
+ "aria-label": __props.labels.showLeftPanel,
128
+ onClick: toggleLeftPanel
129
+ }, {
130
+ default: withCtx(() => [..._cache[3] || (_cache[3] = [createElementVNode("i", { class: "icon-[lucide--panel-left]" }, null, -1)])]),
131
+ _: 1
132
+ }, 8, ["aria-label"])) : createCommentVNode("", true), renderSlot(_ctx.$slots, "header")], 2),
133
+ renderSlot(_ctx.$slots, "header-right-area"),
134
+ !isRightPanelOpen.value ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [hasRightPanel.value ? (openBlock(), createBlock(unref(Button_default), {
135
+ key: 0,
136
+ size: "lg",
137
+ class: "w-10 p-0",
138
+ "aria-label": __props.labels.showRightPanel,
139
+ onClick: toggleRightPanel
140
+ }, {
141
+ default: withCtx(() => [..._cache[4] || (_cache[4] = [createElementVNode("i", { class: "icon-[lucide--panel-right]" }, null, -1)])]),
142
+ _: 1
143
+ }, 8, ["aria-label"])) : createCommentVNode("", true), createVNode(unref(Button_default), {
144
+ size: "lg",
145
+ class: "w-10",
146
+ variant: __props.closeButtonVariant,
147
+ "aria-label": __props.labels.close,
148
+ onClick: _cache[0] || (_cache[0] = ($event) => emit("close"))
149
+ }, {
150
+ default: withCtx(() => [createElementVNode("i", { class: normalizeClass(__props.closeIcon) }, null, 2)]),
151
+ _: 1
152
+ }, 8, ["variant", "aria-label"])], 64)) : createCommentVNode("", true)
153
+ ], 2)) : createCommentVNode("", true), createElementVNode("main", _hoisted_4, [
154
+ renderSlot(_ctx.$slots, "contentFilter"),
155
+ createVNode(unref(DialogTitle_default), { class: normalizeClass(unref(cn)("m-0 px-6 pt-2 pb-6 text-2xl font-normal capitalize select-none", hasLeftPanel.value && "sr-only")) }, {
156
+ default: withCtx(() => [createTextVNode(toDisplayString(__props.contentTitle), 1)]),
157
+ _: 1
158
+ }, 8, ["class"]),
159
+ createElementVNode("div", {
160
+ ref_key: "contentContainer",
161
+ ref: contentContainer,
162
+ "data-testid": "base-modal-content",
163
+ class: normalizeClass(contentContainerClass.value)
164
+ }, [renderSlot(_ctx.$slots, "content")], 2)
165
+ ])]),
166
+ hasRightPanel.value ? (openBlock(), createElementBlock("aside", {
167
+ key: 0,
168
+ class: "overflow-hidden",
169
+ inert: !isRightPanelOpen.value,
170
+ "aria-hidden": !isRightPanelOpen.value
171
+ }, [createElementVNode("div", _hoisted_6, [createElementVNode("header", _hoisted_7, [
172
+ __props.rightPanelTitle ? (openBlock(), createElementBlock("h2", _hoisted_8, toDisplayString(__props.rightPanelTitle), 1)) : (openBlock(), createElementBlock("div", _hoisted_9, [renderSlot(_ctx.$slots, "rightPanelHeaderTitle")])),
173
+ renderSlot(_ctx.$slots, "rightPanelHeaderActions"),
174
+ createVNode(unref(Button_default), {
175
+ size: "lg",
176
+ class: "w-10 p-0",
177
+ "aria-label": __props.labels.hideRightPanel,
178
+ onClick: toggleRightPanel
179
+ }, {
180
+ default: withCtx(() => [..._cache[5] || (_cache[5] = [createElementVNode("i", { class: "icon-[lucide--panel-right-close]" }, null, -1)])]),
181
+ _: 1
182
+ }, 8, ["aria-label"]),
183
+ createVNode(unref(Button_default), {
184
+ size: "lg",
185
+ class: "w-10 p-0",
186
+ variant: __props.closeButtonVariant,
187
+ "aria-label": __props.labels.close,
188
+ onClick: _cache[1] || (_cache[1] = ($event) => emit("close"))
189
+ }, {
190
+ default: withCtx(() => [createElementVNode("i", { class: normalizeClass(__props.closeIcon) }, null, 2)]),
191
+ _: 1
192
+ }, 8, ["variant", "aria-label"])
193
+ ]), createElementVNode("div", _hoisted_10, [renderSlot(_ctx.$slots, "rightPanel")])])], 8, _hoisted_5)) : createCommentVNode("", true)
194
+ ], 4)], 34);
195
+ };
196
+ }
197
+ });
198
+ export { BaseModalLayout_default as default };
@@ -1,12 +1,11 @@
1
1
  import { Fragment, createCommentVNode, createElementBlock, defineComponent, openBlock, renderList } from "vue";
2
- //#region src/components/media/AudioPreview.vue?vue&type=script&setup=true&lang.ts
2
+ // src/components/media/AudioPreview.vue?vue&type=script&setup=true&lang.ts
3
3
  var _hoisted_1 = {
4
4
  key: 0,
5
5
  class: "flex flex-col gap-2 px-2"
6
6
  };
7
7
  var _hoisted_2 = ["src"];
8
- //#endregion
9
- //#region src/components/media/AudioPreview.vue
8
+ // src/components/media/AudioPreview.vue
10
9
  var AudioPreview_default = /* @__PURE__ */ defineComponent({
11
10
  __name: "AudioPreview",
12
11
  props: { audioUrls: {} },
@@ -24,5 +23,4 @@ var AudioPreview_default = /* @__PURE__ */ defineComponent({
24
23
  };
25
24
  }
26
25
  });
27
- //#endregion
28
26
  export { AudioPreview_default as default };
@@ -0,0 +1,17 @@
1
+ type __VLS_Props = {
2
+ src: string;
3
+ alt?: string;
4
+ fallbackTitle: string;
5
+ closeLabel: string;
6
+ };
7
+ type __VLS_ModelProps = {
8
+ modelValue?: boolean;
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: boolean) => any;
13
+ }, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
14
+ "onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
15
+ }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
16
+ declare const _default: typeof __VLS_export;
17
+ export default _default;
@@ -0,0 +1,76 @@
1
+ import { t as DialogClose_default } from "../shared/DialogClose-CrtPRSNX.js";
2
+ import { t as DialogContent_default } from "../shared/DialogContent-v2s55FXs.js";
3
+ import { t as DialogOverlay_default } from "../shared/DialogOverlay-C9qv0zme.js";
4
+ import { t as DialogPortal_default } from "../shared/DialogPortal-DtCpLgtO.js";
5
+ import { t as Button_default } from "../shared/Button-Dj_H5v3V.js";
6
+ import { createBlock, createCommentVNode, createElementVNode, createTextVNode, createVNode, defineComponent, mergeModels, openBlock, toDisplayString, unref, useModel, withCtx } from "vue";
7
+ import { DialogDescription, DialogRoot, DialogTitle, VisuallyHidden } from "reka-ui";
8
+ // src/components/media/ImageLightbox.vue?vue&type=script&setup=true&lang.ts
9
+ var _hoisted_1 = ["src", "alt"];
10
+ // src/components/media/ImageLightbox.vue
11
+ var ImageLightbox_default = /* @__PURE__ */ defineComponent({
12
+ __name: "ImageLightbox",
13
+ props: /*@__PURE__*/ mergeModels({
14
+ src: {},
15
+ alt: { default: "" },
16
+ fallbackTitle: {},
17
+ closeLabel: {}
18
+ }, {
19
+ "modelValue": {
20
+ type: Boolean,
21
+ default: false
22
+ },
23
+ "modelModifiers": {}
24
+ }),
25
+ emits: ["update:modelValue"],
26
+ setup(__props) {
27
+ const open = useModel(__props, "modelValue");
28
+ return (_ctx, _cache) => {
29
+ return openBlock(), createBlock(unref(DialogRoot), {
30
+ open: open.value,
31
+ "onUpdate:open": _cache[0] || (_cache[0] = ($event) => open.value = $event)
32
+ }, {
33
+ default: withCtx(() => [createVNode(unref(DialogPortal_default), null, {
34
+ default: withCtx(() => [createVNode(unref(DialogOverlay_default)), createVNode(unref(DialogContent_default), {
35
+ surface: "none",
36
+ size: "fit"
37
+ }, {
38
+ default: withCtx(() => [
39
+ createVNode(unref(VisuallyHidden), null, {
40
+ default: withCtx(() => [createVNode(unref(DialogTitle), null, {
41
+ default: withCtx(() => [createTextVNode(toDisplayString(__props.alt || __props.fallbackTitle), 1)]),
42
+ _: 1
43
+ }), __props.alt ? (openBlock(), createBlock(unref(DialogDescription), { key: 0 }, {
44
+ default: withCtx(() => [createTextVNode(toDisplayString(__props.alt), 1)]),
45
+ _: 1
46
+ })) : createCommentVNode("", true)]),
47
+ _: 1
48
+ }),
49
+ createVNode(unref(DialogClose_default), null, {
50
+ default: withCtx(() => [createVNode(unref(Button_default), {
51
+ "aria-label": __props.closeLabel,
52
+ size: "icon",
53
+ variant: "muted-textonly",
54
+ class: "absolute -top-2 -right-2 z-10 translate-x-full text-white hover:text-white/80"
55
+ }, {
56
+ default: withCtx(() => [..._cache[1] || (_cache[1] = [createElementVNode("i", { class: "icon-[lucide--x] size-5" }, null, -1)])]),
57
+ _: 1
58
+ }, 8, ["aria-label"])]),
59
+ _: 1
60
+ }),
61
+ createElementVNode("img", {
62
+ src: __props.src,
63
+ alt: __props.alt,
64
+ class: "max-h-[90vh] max-w-[90vw] rounded-sm object-contain"
65
+ }, null, 8, _hoisted_1)
66
+ ]),
67
+ _: 1
68
+ })]),
69
+ _: 1
70
+ })]),
71
+ _: 1
72
+ }, 8, ["open"]);
73
+ };
74
+ }
75
+ });
76
+ export { ImageLightbox_default as default };
@@ -1,8 +1,7 @@
1
1
  import { createElementBlock, defineComponent, openBlock, toDisplayString } from "vue";
2
- //#region src/components/media/MediaTitle.vue?vue&type=script&setup=true&lang.ts
2
+ // src/components/media/MediaTitle.vue?vue&type=script&setup=true&lang.ts
3
3
  var _hoisted_1 = ["title"];
4
- //#endregion
5
- //#region src/components/media/MediaTitle.vue
4
+ // src/components/media/MediaTitle.vue
6
5
  var MediaTitle_default = /* @__PURE__ */ defineComponent({
7
6
  __name: "MediaTitle",
8
7
  props: { fileName: {} },
@@ -15,5 +14,4 @@ var MediaTitle_default = /* @__PURE__ */ defineComponent({
15
14
  };
16
15
  }
17
16
  });
18
- //#endregion
19
17
  export { MediaTitle_default as default };
@@ -0,0 +1,28 @@
1
+ type __VLS_Props = {
2
+ sources?: Array<{
3
+ src: string;
4
+ type: string;
5
+ }>;
6
+ posterSrc?: string;
7
+ autoplay?: boolean;
8
+ muted?: boolean;
9
+ loop?: boolean;
10
+ playsInline?: boolean;
11
+ playbackLabels?: {
12
+ play: string;
13
+ pause: string;
14
+ };
15
+ };
16
+ declare var __VLS_9: {};
17
+ type __VLS_Slots = {} & {
18
+ fallback?: (props: typeof __VLS_9) => any;
19
+ };
20
+ 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>;
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,100 @@
1
+ import { t as Button_default } from "../shared/Button-Dj_H5v3V.js";
2
+ import { Fragment, computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, defineComponent, mergeProps, normalizeClass, openBlock, ref, renderList, renderSlot, unref, useTemplateRef, watchEffect, withCtx } from "vue";
3
+ import { usePreferredReducedMotion } from "@vueuse/core";
4
+ // src/components/media/Video.vue?vue&type=script&setup=true&lang.ts
5
+ var _hoisted_1 = {
6
+ key: 0,
7
+ class: "relative"
8
+ };
9
+ var _hoisted_2 = [
10
+ "poster",
11
+ "autoplay",
12
+ "muted",
13
+ "loop",
14
+ "playsinline"
15
+ ];
16
+ var _hoisted_3 = [
17
+ "src",
18
+ "type",
19
+ "onError"
20
+ ];
21
+ // src/components/media/Video.vue
22
+ var Video_default = /* @__PURE__ */ defineComponent({
23
+ inheritAttrs: false,
24
+ __name: "Video",
25
+ props: {
26
+ sources: { default: () => [] },
27
+ posterSrc: { default: "" },
28
+ autoplay: {
29
+ type: Boolean,
30
+ default: false
31
+ },
32
+ muted: {
33
+ type: Boolean,
34
+ default: false
35
+ },
36
+ loop: {
37
+ type: Boolean,
38
+ default: false
39
+ },
40
+ playsInline: {
41
+ type: Boolean,
42
+ default: false
43
+ },
44
+ playbackLabels: {}
45
+ },
46
+ setup(__props) {
47
+ const video = useTemplateRef("video");
48
+ const failed = ref(false);
49
+ const playing = ref(false);
50
+ const reducedMotion = usePreferredReducedMotion();
51
+ const shouldAutoplay = computed(() => __props.autoplay && reducedMotion.value !== "reduce");
52
+ watchEffect(() => {
53
+ if (__props.autoplay && !shouldAutoplay.value) video.value?.pause();
54
+ });
55
+ function togglePlayback() {
56
+ const element = video.value;
57
+ if (!element) return;
58
+ if (!element.paused) element.pause();
59
+ else element.play().catch(() => {
60
+ playing.value = false;
61
+ });
62
+ }
63
+ return (_ctx, _cache) => {
64
+ return __props.sources.length && !failed.value ? (openBlock(), createElementBlock("div", _hoisted_1, [createElementVNode("video", mergeProps({
65
+ ref_key: "video",
66
+ ref: video
67
+ }, _ctx.$attrs, {
68
+ poster: __props.posterSrc || void 0,
69
+ autoplay: shouldAutoplay.value,
70
+ muted: __props.muted,
71
+ loop: __props.loop,
72
+ playsinline: __props.playsInline,
73
+ onPlay: _cache[0] || (_cache[0] = ($event) => playing.value = true),
74
+ onPause: _cache[1] || (_cache[1] = ($event) => playing.value = false),
75
+ onError: _cache[2] || (_cache[2] = ($event) => failed.value = true)
76
+ }), [(openBlock(true), createElementBlock(Fragment, null, renderList(__props.sources, (source, index) => {
77
+ return openBlock(), createElementBlock("source", {
78
+ key: source.src,
79
+ src: source.src,
80
+ type: source.type,
81
+ onError: ($event) => failed.value = index === __props.sources.length - 1
82
+ }, null, 40, _hoisted_3);
83
+ }), 128))], 16, _hoisted_2), __props.playbackLabels ? (openBlock(), createBlock(unref(Button_default), {
84
+ key: 0,
85
+ variant: "overlay-white",
86
+ size: "icon",
87
+ class: "absolute right-3 bottom-3",
88
+ "aria-label": playing.value ? __props.playbackLabels.pause : __props.playbackLabels.play,
89
+ onClick: togglePlayback
90
+ }, {
91
+ default: withCtx(() => [createElementVNode("i", {
92
+ class: normalizeClass(playing.value ? "icon-[lucide--pause]" : "icon-[lucide--play]"),
93
+ "aria-hidden": "true"
94
+ }, null, 2)]),
95
+ _: 1
96
+ }, 8, ["aria-label"])) : createCommentVNode("", true)])) : renderSlot(_ctx.$slots, "fallback", {}, void 0, void 0, 1);
97
+ };
98
+ }
99
+ });
100
+ export { Video_default as default };
@@ -1,9 +1,8 @@
1
- import { t as cn } from "../shared/src-CnJ6AzLP.js";
1
+ import { t as cn } from "../shared/src-DTwuqov4.js";
2
2
  import { Fragment, computed, createCommentVNode, createElementBlock, createElementVNode, defineComponent, normalizeClass, openBlock, unref } from "vue";
3
- //#region src/components/media/VideoPlayOverlay.vue?vue&type=script&setup=true&lang.ts
3
+ // src/components/media/VideoPlayOverlay.vue?vue&type=script&setup=true&lang.ts
4
4
  var _hoisted_1 = { class: "pointer-events-none absolute inset-0 flex items-center justify-center" };
5
- //#endregion
6
- //#region src/components/media/VideoPlayOverlay.vue
5
+ // src/components/media/VideoPlayOverlay.vue
7
6
  var VideoPlayOverlay_default = /* @__PURE__ */ defineComponent({
8
7
  __name: "VideoPlayOverlay",
9
8
  props: {
@@ -24,5 +23,4 @@ var VideoPlayOverlay_default = /* @__PURE__ */ defineComponent({
24
23
  };
25
24
  }
26
25
  });
27
- //#endregion
28
26
  export { VideoPlayOverlay_default as default };
@@ -1,9 +1,8 @@
1
1
  import { Fragment, createCommentVNode, createElementBlock, createElementVNode, createTextVNode, defineComponent, mergeProps, openBlock, ref, toDisplayString, useTemplateRef } from "vue";
2
- //#region src/components/media/VideoPreview.vue?vue&type=script&setup=true&lang.ts
2
+ // src/components/media/VideoPreview.vue?vue&type=script&setup=true&lang.ts
3
3
  var _hoisted_1 = ["src"];
4
4
  var _hoisted_2 = { class: "z-10 self-center" };
5
- //#endregion
6
- //#region src/components/media/VideoPreview.vue
5
+ // src/components/media/VideoPreview.vue
7
6
  var VideoPreview_default = /* @__PURE__ */ defineComponent({
8
7
  __name: "VideoPreview",
9
8
  props: {
@@ -28,5 +27,4 @@ var VideoPreview_default = /* @__PURE__ */ defineComponent({
28
27
  };
29
28
  }
30
29
  });
31
- //#endregion
32
30
  export { VideoPreview_default as default };
@@ -1,6 +1,5 @@
1
1
  import { computed, createElementBlock, defineComponent, isRef, normalizeStyle, openBlock, ref, renderSlot, useTemplateRef, withModifiers } from "vue";
2
- //#endregion
3
- //#region src/components/media/ZoomPane.vue
2
+ // src/components/media/ZoomPane.vue
4
3
  var ZoomPane_default = /* @__PURE__ */ defineComponent({
5
4
  __name: "ZoomPane",
6
5
  setup(__props) {
@@ -58,5 +57,4 @@ var ZoomPane_default = /* @__PURE__ */ defineComponent({
58
57
  };
59
58
  }
60
59
  });
61
- //#endregion
62
60
  export { ZoomPane_default as default };
@@ -1,9 +1,8 @@
1
- import { t as ContextMenuContent_default } from "../shared/ContextMenuContent-CNQHJQ81.js";
2
- import { t as MenuItems_default } from "../shared/MenuItems-BJKetPV-.js";
1
+ import { t as ContextMenuContent_default } from "../shared/ContextMenuContent-RNyBBJOX.js";
2
+ import { t as MenuItems_default } from "../shared/MenuItems-BZTlERd6.js";
3
3
  import { createBlock, createSlots, createVNode, defineComponent, guardReactiveProps, mergeModels, mergeProps, normalizeProps, openBlock, renderSlot, toValue, unref, useModel, withCtx } from "vue";
4
4
  import { ContextMenuRoot, ContextMenuTrigger } from "reka-ui";
5
- //#endregion
6
- //#region src/components/menu/ContextMenu.vue
5
+ // src/components/menu/ContextMenu.vue
7
6
  var ContextMenu_default = /* @__PURE__ */ defineComponent({
8
7
  inheritAttrs: false,
9
8
  __name: "ContextMenu",
@@ -48,5 +47,4 @@ var ContextMenu_default = /* @__PURE__ */ defineComponent({
48
47
  };
49
48
  }
50
49
  });
51
- //#endregion
52
50
  export { ContextMenu_default as default };
@@ -1,2 +1 @@
1
- import { t as ContextMenuContent_default } from "../shared/ContextMenuContent-CNQHJQ81.js";
2
- export { ContextMenuContent_default as default };
1
+ export { t as default } from "../shared/ContextMenuContent-RNyBBJOX.js";