Skip to content

Commit

Permalink
Rename to portalProps
Browse files Browse the repository at this point in the history
  • Loading branch information
saturnonearth committed Nov 15, 2024
1 parent d06a67d commit 52639e8
Show file tree
Hide file tree
Showing 14 changed files with 40 additions and 40 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,14 @@
let {
ref = $bindable(null),
class: className,
portal,
portalProps,
...restProps
}: WithoutChild<AlertDialogPrimitive.ContentProps> & {
portal?: AlertDialogPrimitive.PortalProps;
portalProps?: AlertDialogPrimitive.PortalProps;
} = $props();
</script>

<AlertDialogPrimitive.Portal {...portal}>
<AlertDialogPrimitive.Portal {...portalProps}>
<AlertDialogOverlay />
<AlertDialogPrimitive.Content
bind:ref
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,12 @@
open = $bindable(false),
ref = $bindable(null),
value = $bindable(""),
portal,
portalProps,

Check failure on line 15 in sites/docs/src/lib/registry/default/ui/command/command-dialog.svelte

View workflow job for this annotation

GitHub Actions / Lint

'portalProps' is assigned a value but never used. Allowed unused vars must match /^_/u
children,
...restProps
}: WithoutChildrenOrChild<DialogPrimitive.RootProps> &
WithoutChildrenOrChild<CommandPrimitive.RootProps> & {
portal?: DialogPrimitive.PortalProps;
portalProps?: DialogPrimitive.PortalProps;
children: Snippet;
} = $props();
</script>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,16 +8,16 @@
let {
ref = $bindable(null),
class: className,
portal,
portalProps,
children,
...restProps
}: WithoutChildrenOrChild<DialogPrimitive.ContentProps> & {
portal?: DialogPrimitive.PortalProps;
portalProps?: DialogPrimitive.PortalProps;
children: Snippet;
} = $props();
</script>

<Dialog.Portal {...portal}>
<Dialog.Portal {...portalProps}>
<Dialog.Overlay />
<DialogPrimitive.Content
bind:ref
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,15 @@
let {
ref = $bindable(null),
class: className,
portal,
portalProps,
children,
...restProps
}: DrawerPrimitive.ContentProps & {
portal?: DrawerPrimitive.PortalProps;
portalProps?: DrawerPrimitive.PortalProps;
} = $props();
</script>

<DrawerPrimitive.Portal {...portal}>
<DrawerPrimitive.Portal {...portalProps}>
<DrawerOverlay />
<DrawerPrimitive.Content
bind:ref
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,14 @@
class: className,
sideOffset = 4,
align = "center",
portal,
portalProps,
...restProps
}: PopoverPrimitive.ContentProps & {
portal?: PopoverPrimitive.PortalProps;
portalProps?: PopoverPrimitive.PortalProps;
} = $props();
</script>

<PopoverPrimitive.Portal {...portal}>
<PopoverPrimitive.Portal {...portalProps}>
<PopoverPrimitive.Content
bind:ref
{sideOffset}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,15 @@
ref = $bindable(null),
class: className,
sideOffset = 4,
portal,
portalProps,
children,
...restProps
}: WithoutChild<SelectPrimitive.ContentProps> & {
portal?: SelectPrimitive.PortalProps;
portalProps?: SelectPrimitive.PortalProps;
} = $props();
</script>

<SelectPrimitive.Portal {...portal}>
<SelectPrimitive.Portal {...portalProps}>
<SelectPrimitive.Content
bind:ref
{sideOffset}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,17 +29,17 @@
ref = $bindable(null),
class: className,
side = "right",
portal,
portalProps,
children,
...restProps
}: WithoutChildrenOrChild<SheetPrimitive.ContentProps> & {
portal?: SheetPrimitive.PortalProps;
portalProps?: SheetPrimitive.PortalProps;
side?: Side;
children: Snippet;
} = $props();
</script>

<SheetPrimitive.Portal {...portal}>
<SheetPrimitive.Portal {...portalProps}>
<SheetOverlay />
<SheetPrimitive.Content bind:ref class={cn(sheetVariants({ side }), className)} {...restProps}>
{@render children?.()}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,14 @@
let {
ref = $bindable(null),
class: className,
portal,
portalProps,
...restProps
}: WithoutChild<AlertDialogPrimitive.ContentProps> & {
portal?: AlertDialogPrimitive.PortalProps;
portalProps?: AlertDialogPrimitive.PortalProps;
} = $props();
</script>

<AlertDialogPrimitive.Portal {...portal}>
<AlertDialogPrimitive.Portal {...portalProps}>
<AlertDialogOverlay />
<AlertDialogPrimitive.Content
bind:ref
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,12 @@
open = $bindable(false),
ref = $bindable(null),
value = $bindable(""),
portal,
portalProps,

Check failure on line 15 in sites/docs/src/lib/registry/new-york/ui/command/command-dialog.svelte

View workflow job for this annotation

GitHub Actions / Lint

'portalProps' is assigned a value but never used. Allowed unused vars must match /^_/u
children,
...restProps
}: WithoutChildrenOrChild<DialogPrimitive.RootProps> &
WithoutChildrenOrChild<CommandPrimitive.RootProps> & {
portal?: DialogPrimitive.PortalProps;
portalProps?: DialogPrimitive.PortalProps;
children: Snippet;
} = $props();
</script>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,16 +8,16 @@
let {
ref = $bindable(null),
class: className,
portal,
portalProps,
children,
...restProps
}: WithoutChildrenOrChild<DialogPrimitive.ContentProps> & {
portal?: DialogPrimitive.PortalProps;
portalProps?: DialogPrimitive.PortalProps;
children: Snippet;
} = $props();
</script>

<Dialog.Portal {...portal}>
<Dialog.Portal {...portalProps}>
<Dialog.Overlay />
<DialogPrimitive.Content
bind:ref
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,15 @@
let {
ref = $bindable(null),
class: className,
portal,
portalProps,
children,
...restProps
}: DrawerPrimitive.ContentProps & {
portal?: DrawerPrimitive.PortalProps;
portalProps?: DrawerPrimitive.PortalProps;
} = $props();
</script>

<DrawerPrimitive.Portal {...portal}>
<DrawerPrimitive.Portal {...portalProps}>
<DrawerOverlay />
<DrawerPrimitive.Content
bind:ref
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,14 @@
class: className,
align = "center",
sideOffset = 4,
portal,
portalProps,
...restProps
}: PopoverPrimitive.ContentProps & {
portal?: PopoverPrimitive.PortalProps;
portalProps?: PopoverPrimitive.PortalProps;
} = $props();
</script>

<PopoverPrimitive.Portal {...portal}>
<PopoverPrimitive.Portal {...portalProps}>
<PopoverPrimitive.Content
bind:ref
{align}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,15 @@
ref = $bindable(null),
class: className,
sideOffset = 4,
portal,
portalProps,
children,
...restProps
}: WithoutChild<SelectPrimitive.ContentProps> & {
portal?: SelectPrimitive.PortalProps;
portalProps?: SelectPrimitive.PortalProps;
} = $props();
</script>

<SelectPrimitive.Portal {...portal}>
<SelectPrimitive.Portal {...portalProps}>
<SelectPrimitive.Content
bind:ref
{sideOffset}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,18 +29,18 @@
let {
ref = $bindable(null),
class: className,
portal,
portalProps,
side = "right",
children,
...restProps
}: WithoutChildrenOrChild<SheetPrimitive.ContentProps> & {
portal?: SheetPrimitive.PortalProps;
portalProps?: SheetPrimitive.PortalProps;
side?: Side;
children: Snippet;
} = $props();
</script>

<SheetPrimitive.Portal {...portal}>
<SheetPrimitive.Portal {...portalProps}>
<SheetOverlay />
<SheetPrimitive.Content bind:ref class={cn(sheetVariants({ side }), className)} {...restProps}>
{@render children?.()}
Expand Down

0 comments on commit 52639e8

Please sign in to comment.