@invopop/popui 0.1.3 → 0.1.5
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.
package/dist/BaseTable.svelte
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import type { BaseTableProps } from './types.js';
|
|
2
|
-
declare const BaseTable: import("svelte").Component<BaseTableProps, {}, "selectedRows">;
|
|
2
|
+
declare const BaseTable: import("svelte").Component<BaseTableProps, {}, "sortDirection" | "selectedRows">;
|
|
3
3
|
type BaseTable = ReturnType<typeof BaseTable>;
|
|
4
4
|
export default BaseTable;
|
|
@@ -6,7 +6,8 @@
|
|
|
6
6
|
ref = $bindable(null),
|
|
7
7
|
class: className,
|
|
8
8
|
destructive = false,
|
|
9
|
-
children
|
|
9
|
+
children,
|
|
10
|
+
...restProps
|
|
10
11
|
}: AlertDialogPrimitive.ActionProps & { destructive: boolean } = $props()
|
|
11
12
|
|
|
12
13
|
let variant = $derived((destructive ? 'destructive' : 'primary') as ButtonVariant)
|
|
@@ -16,6 +17,7 @@
|
|
|
16
17
|
bind:ref
|
|
17
18
|
data-slot="alert-dialog-action"
|
|
18
19
|
class={cn(buttonVariants({ variant }), className)}
|
|
20
|
+
{...restProps}
|
|
19
21
|
>
|
|
20
22
|
{@render children?.()}
|
|
21
23
|
</AlertDialogPrimitive.Action>
|
|
@@ -5,7 +5,8 @@
|
|
|
5
5
|
let {
|
|
6
6
|
ref = $bindable(null),
|
|
7
7
|
class: className,
|
|
8
|
-
children
|
|
8
|
+
children,
|
|
9
|
+
...restProps
|
|
9
10
|
}: AlertDialogPrimitive.CancelProps = $props()
|
|
10
11
|
</script>
|
|
11
12
|
|
|
@@ -14,6 +15,7 @@
|
|
|
14
15
|
data-slot="alert-dialog-cancel"
|
|
15
16
|
class={cn(buttonVariants({ variant: 'secondary' }), 'mt-2 sm:mt-0', className)}
|
|
16
17
|
{onkeydown}
|
|
18
|
+
{...restProps}
|
|
17
19
|
>
|
|
18
20
|
{@render children?.()}
|
|
19
21
|
</AlertDialogPrimitive.Cancel>
|