diff --git a/tools/ui/src/lib/components/app/dialogs/DialogMermaidPreview.svelte b/tools/ui/src/lib/components/app/dialogs/DialogMermaidPreview.svelte index 09e53442ac65..e741373497aa 100644 --- a/tools/ui/src/lib/components/app/dialogs/DialogMermaidPreview.svelte +++ b/tools/ui/src/lib/components/app/dialogs/DialogMermaidPreview.svelte @@ -14,6 +14,7 @@ diff --git a/tools/ui/src/lib/components/ui/dialog/dialog-close.svelte b/tools/ui/src/lib/components/ui/dialog/dialog-close.svelte index e8a96a773163..cd957a9bf8d3 100644 --- a/tools/ui/src/lib/components/ui/dialog/dialog-close.svelte +++ b/tools/ui/src/lib/components/ui/dialog/dialog-close.svelte @@ -5,3 +5,9 @@ + + diff --git a/tools/ui/src/lib/components/ui/dialog/dialog-content.svelte b/tools/ui/src/lib/components/ui/dialog/dialog-content.svelte index e6b2a641d5d2..8a1a5909d579 100644 --- a/tools/ui/src/lib/components/ui/dialog/dialog-content.svelte +++ b/tools/ui/src/lib/components/ui/dialog/dialog-content.svelte @@ -10,7 +10,7 @@ class: className, portalProps, ref = $bindable(null), - showCloseButton = true, + showCloseButton = false, ...restProps }: WithoutChildrenOrChild & { portalProps?: DialogPrimitive.PortalProps; @@ -25,7 +25,8 @@ + import XIcon from '@lucide/svelte/icons/x'; import { cn, type WithElementRef } from '$lib/components/ui/utils'; + import { Dialog as DialogPrimitive } from 'bits-ui'; import type { HTMLAttributes } from 'svelte/elements'; let { children, class: className, ref = $bindable(null), + showCloseButton = true, ...restProps - }: WithElementRef> = $props(); + }: WithElementRef> & { + showCloseButton?: boolean; + } = $props(); +
{@render children?.()} + + {#if showCloseButton} + + + + Close + + {/if}