LCOV - code coverage report
Current view: top level - packages/design-system/src/components/dialog - Dialogue.vue Coverage Total Hit
Test: ComfyUI E2E Coverage Lines: 100.0 % 1 1
Test Date: 2026-11-17 04:17:53

            Line data    Source code
       1              : <script setup lang="ts">
       2              : import DialogClose from '@comfyorg/design-system/dialog/DialogClose'
       3              : import DialogContent from '@comfyorg/design-system/dialog/DialogContent'
       4              : import DialogOverlay from '@comfyorg/design-system/dialog/DialogOverlay'
       5              : import DialogPortal from '@comfyorg/design-system/dialog/DialogPortal'
       6              : import DialogTitle from '@comfyorg/design-system/dialog/DialogTitle'
       7              : import { DialogRoot, DialogTrigger } from 'reka-ui'
       8              : 
       9              : import Button from '@comfyorg/design-system/button/Button'
      10              : 
      11              : defineProps<{
      12              :   title?: string
      13              :   closeLabel: string
      14              :   to?: string | HTMLElement
      15              : }>()
      16              : </script>
      17              : <template>
      18         2355 :   <DialogRoot v-slot="{ close }">
      19              :     <DialogTrigger as-child>
      20              :       <slot name="button" />
      21              :     </DialogTrigger>
      22              :     <DialogPortal :to>
      23              :       <DialogOverlay />
      24              :       <DialogContent v-bind="$attrs" size="sm" class="p-2">
      25              :         <div
      26              :           v-if="title"
      27              :           class="flex w-full items-center justify-between border-b border-border/50 px-4"
      28              :         >
      29              :           <DialogTitle class="text-sm">{{ title }}</DialogTitle>
      30              :           <DialogClose>
      31              :             <Button
      32              :               :aria-label="closeLabel"
      33              :               size="icon"
      34              :               variant="muted-textonly"
      35              :             >
      36              :               <i class="icon-[lucide--x]" />
      37              :             </Button>
      38              :           </DialogClose>
      39              :         </div>
      40              :         <slot :close />
      41              :       </DialogContent>
      42              :     </DialogPortal>
      43              :   </DialogRoot>
      44              : </template>
        

Generated by: LCOV version 2.0-1